Piggybacking on LBushkin's response:
Func AGreaterThanB = (a,b) => a > b;
Func ALessThanB = (a,b) => a < b;
Func< int, int, bool> op = AGreaterThanB;
int x = 7;
int y = 6;
if ( op( x, y ) )
{
Console.WriteLine( "X is larger" );
}
else
{
Console.WriteLine( "Y is larger" );
}
http://msdn.microsoft.com/en-us/library/bb549151.aspx