public static int CallDelegateGenericReturn(int a) { status = a; DelegateGenericReturn <int> d = DelegateReturnTarget; return(d()); }
public static bool CallDelegateGenericReturnStructB() { status = 5; DelegateGenericReturn <B> d = DelegateReturnStructBTarget; B res = d(); return(res.Value1 == 5 && res.Value2 == 10); }
public static int CallDelegateGenericReturnStructA(int a) { status = a; DelegateGenericReturn <A> d = DelegateReturnStructATarget; A res = d(); return(res.Value); }