Monthly Archives: January 2008
Some Consistency, Please
Let’s look at the signatures for constructors of ArgumentNullException and ArgumentException: public ArgumentException( string message, string paramName ) public ArgumentNullException( string paramName, string message ) Notice how they both take two string parameters, but each has opposite order. This drives … Continue reading
Mixing numbers and replacement strings
This is yet another thing that I found took me too long to find on Google. I’m using the .NET regular expressions, and looking to replace values in a string with numbers, and I need to use the special $1 … Continue reading
Windows ComboBox keyboard shortcuts
I use the keyboard a ton, and I found myself almost twice a week having to look up the keys to drop the menu in a ComboBox control. The right stuff tends to be buried in large documents, and I … Continue reading