FxCop - Excluding rules in code

One of the tools we use at my current job to validate code as part of our automated build is FxCop. It can be a pain, but we’ve found it very useful in terms of standardising our code and rooting out all those un-used variables that seem to grow to... [Read More]
Tags: fxcop

Google syntax highlighter

In setting up this blog, I was weighing up my options as to how to highlight code. You can do it manually by setting the colour of individual words, but that is just a pain in the ass, particularly for larger posts so I considered writing a JavaScript class for... [Read More]

IN queries with Castle ActiveRecord

Rather than do a String.Format, ActiveRecord has a Query.SetParameterList(“Param”, IList) method that can be used for IN statements. Doing it this way allows for query caching, as well as simpler code. In the following example, lstKeys is a List object. [Read More]
Tags: c#

Element Wrapping in IE6

Now that tables are no longer acceptable for use when creating displays, there remains a problem when trying to get a row of elements to always display as a row without wrapping. In IE7 and Firefox, you can get it to behave fairly easily, but in IE6 it’s actually impossible... [Read More]
Tags: ie6