.NET Framework 3.5
Posted on July 30, 2007
static int DoBinOp(Func<int,int,int> op, int a, int b)
{
return op(a, b);
}
Assert.Equal(3, DoBinOp((a,b) => a + b, 1, 2));
Filed Under Uncategorized |
Leave a Comment
If you would like to make a comment, please fill out the form below.