Browse by Tags
All Tags »
Adventures3.5 »
C# (RSS)
If your using a CodeDomProvider to compile code yourself programmatically in VS 2008, what version of the Framework is targeted? By default it is 2.0, irrespective of which VS 2008 target version (2.0, 3.0 or 3.5) is specified. In order to target the...
This is the 4th part in a series. See Part1 , Part 2 and Part3 . Extension Methods continued So, where we left things last time , was with the creation of a Transform () extension method that allowed us to output to the console, lowercase states transformed...
This is the 3rd part in a series. See Part1 and Part 2 . Inferring a Collection Type In C# 3.5, the compiler can (typically) infer the type of a collection. The member type doesn't need to be explicitly specified. var nums = new[] { 1,2,3 }; or var states...
In my previous post , I talked about .NET 3.5 Extension Methods and ended by mentioning Ruby Blocks - because they are much admired. As one example in Ruby, one might output the sum of an array of numbers as follows ... list = [1,2,3,4,5,6,7,8,9,10] sum...
A "Print" To the Console Because I write a lot of small console applications, I find myself typing ... Console.WriteLine("some text"); in C# again and again. I've always pined for the ability to simply be able to have an object "Print" itself to the console...
More Posts