.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.

Name

Email

Website

Comments

For spam detection purposes, please copy the number 5652 to the field below:

© Copyright 0xDEADBEEFCAFE • Powered by Wordpress • Design by Sebastin.

free web hit counter