.

Lambda functions

[TestMethod]
public void TestMethod1()
{
    Func<int,double > mySineFunction = x => Math.Sin(x);
    Assert.AreEqual(Math.Sin(3),mySineFunction(3));
}

What's your thoughts on this?

*

Protected by WP Anti Spam