Yield! Reconsidering APIs with Collections

Yield: A Little Background The yield keyword in C# is pretty cool. Being used within an iterator, yield lets a function return an item as well as control of execution to the caller and upon next iteration resume where it left off. Neat, right? MSDN documentation lists these limitations surrounding the use of the yield keyword: Unsafe blocks are not allowed. Parameters to the method, operator, or accessor cannot be ref or out. A yield return statement cannot be located anywhere inside a try-catch block. It can be located in a try block if the try block is followed by a finally block. A yield break statement may be located in a try block or a catch block but not a finally block. So what does this have to do with API specifications? A whole lot really, especially if you're dealing…

0 Comments

Happy Holidays – Weekly Article Dump

Happy Holidays The holiday season is upon us, so I'd like to start by extending my best wishes for you to have a safe and happy holiday. I've personally been pretty busy the past few weeks wrapping year-end stuff up at work, so I'm looking forward to a few days of being able to catch my breath a bit. If you have some time off from work, I'm hoping you'll get a chance to do the same over the holidays. I can't sit idle for too long though. I don't like not feeling productive, so once I've caught up a bit on some well deserved rest, I'll be right back at it! The holidays and end of the year are a great time to reflect on everything that's happened in the last 12 months. Did you have goals that set you…

0 Comments

Charity Water – Weekly Article Dump

Charity Water We have a lot of pretty awesome people at Magnet Forensics, and every day I'm reminded just how awesome. A colleague of mine, Danielle Braun, had what I thought was an incredible idea for her birthday. For Danielle's birthday, she's not asking for more new clothes, for her parents to get her a car, for help with paying off tuition, or for some new fancy tech gadgets. But she's not asking for nothing. Danielle is asking for your support with Charity: Water this year. Charity: Water is a non-profit organization with the goal of bringing clean water to people in developing nations that don't have access to it. Reading their mission page probably opens your eyes a fair bit about the lack of access to drinking water in other countries. They're not about some complex and elaborate plan…

0 Comments

Movember Wrap-up – Weekly Article Dump

Movember Wrap-up At the start of December, it's time for a lot of us to shave off our glorious Movember badges from our upper lips. This year, MoMagnets did an absolutely amazing job raising money for Movember. At the time of writing, we're sitting at just under $2400! An incredible effort by Magnet Forensics and all of those that helped with their generous contributions. My 'stache didn't quite get to where I wanted to this year. It was close, but it was another connector-less Movember for me. I was almost able to get some twisting done for some not-so-legitimate connectors. Oh well... Here's what I ended up rocking for most of the month: My final Movember creation: The Anti-Connector. Matt Chang definitely took the lead for raising the most of all the MoMagnets members at over $700! Mica Sadler is…

4 Comments

End of content

No more pages to load