static void Main() { bool test1 = FuncTest <Test> .FuncEqual(x => x.Bar, y => y.Bar), test2 = FuncTest <Test> .FuncEqual(x => x.Foo, y => y.Bar); }
public static bool FuncEqual <TValue>( Expression <Func <TSource, TValue> > x, Expression <Func <TSource, TValue> > y) { return(FuncTest.FuncEqual <TSource, TValue>(x, y)); }