A few days ago, I recklessly added a [Serialization] attribute to a few of my immutable collection types. I needed to pass data between AppDomain's and adding [Serialization] was the quick and dirty fix. Compiled, ran and I didn't think much
Read More...
Recently I had to test a class which heavily depended upon a SynchronizationContext . This threw me off for about half an hour as I didn't want to write multi-threaded unit tests. Multi-threaded code is difficult enough without adding needless
Read More...
ISynchronizeInvoke is an interface which allows you to execute a delegate synchronously or asynchronously. The implementer of the interface can control how the delegate is executed. In particular the implementer controls on which thread the delegate is
Read More...
This is a little off topic from my typical purely technical discussion. I'm a huge advocate of automated code verification. Unit testing is preferred but really any method is acceptable as long as it gets the job done of testing your code. IMHO, testing
Read More...