Browse by Tags
All Tags »
Code (
RSS)
I’ve recently had a project that required a great deal of image generation and manipulation. Not having done image manipulation in a good long while I thought it would be good to capture some of the “tricks of the trade”. One of the things I noticed in...
How often have you seen code like this? 1: string myAppSetting = ConfigurationManager.AppSetting[ "key" ]; 2: if (myAppSetting== null ) 3: myAppSetting = "MyDefaultSetting" .csharpcode, .csharpcode pre { font-size: small; color: black;...
There I said it. I'm a C# guy. Now about 4 years when I started with .Net I started writing in VB.Net but I quickly decided to move C#. This, despite having spent the 3+ years prior working in ASP Classic. After a little bit of C# I quickly adopted the...
I like the NUnit 2.4 Constraint based syntax . So In my new role I am having to implement Unit Testing so I decided on going with NUnit to begin with despite my preference for MbUnit . But once I got started writing my tests, I discover Is is a keyword...
One of the nice features of System.Collection.Generics.List is it is able to sort on the go with a IComparable , and you can do that simply with an anonomous method This is simply done like so. 1: List<Attribute> attributes = Entity.Get(); 2: attributes...
More Posts