.

Lambda functions

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