Feeds:
Posts
Comments

Posts Tagged ‘extension methods’

While writing tons of tests I would like to share some of my helper classes here. My first ones are for doing simple performance measurements (not too accurate) and repeating actions.
Code:

using (new Scenario("Sum of all squares from 1 to 100"))
Console.WriteLine("Sum is: {0}", 100.Times(x => x * x).Sum());

using (new Scenario("Print all squares [...]

Read Full Post »

Describes how to set a different font color for extension methods in Visual Studio.

Read Full Post »