public static void Main()
var one = new SomeClass{First = 1, Second = 5};
var two = new SomeClass{First = 5, Second = 1};
Func<SomeClass, int> referrer = null;
referrer = x => x.Second;
if (referrer(one) < referrer(two))
Console.WriteLine("one is smaller than two");
Console.WriteLine("one is greater than two");