Thargy.com

Blogs and articles by Craig Dean

Generics

… get in the queue.

OK, so yesterday I returned with a really simple piece of code that’s convenient when building stack frames. After stacks, the next easiest/most convenient structure has to be the queue.  No surprise then that .NET has a similarly generic Queue  class. It seems appropriate to give it the same treatment – public class Queue<T1, T2> […]

, , ,

Statics and Generics

So statics are generally considered evil, the enemy of TDD and IOC, and at odds with the purity of OO design. Shame they’re so incredibly fast! Whilst we’re talking about the TDD issue, I recommend you stop for a moment and go and take a look at the Fakes Framework added to VS11. Fakes is […]

, , , , , , ,