Code, rants and ramblings of a programmer.
Browse by Tags
Tagged Content List
Making Equality Testing Simple
Getting equality correct on a .Net type is a fairly involved process involving adherence to a large set of rules in order to be considered correct. Including Object.Equals overrides on reference types must return false for null values Object.Equals overrides must return false for incompatible types...
30 Apr 2010
A Lesson in Serialization
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 about it. Luckily I was updating some unit...
2 Sep 2008
Simple class for tests involving a SynchronizationContext
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 threads. The solution I came up with is...
25 Aug 2008
ISynchronizeInvoke ... now
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 executed. It's common for thread sensitive objects...
7 Jan 2008
Testing your code
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 is the most important part of a developers job...
26 Sep 2007
Page 1 of 1 (5 items)
© 2015 Microsoft Corporation.
Privacy & Cookies