Exemplo n.º 1
0
        public static int CallDelegateGenericReturn(int a)
        {
            status = a;
            DelegateGenericReturn <int> d = DelegateReturnTarget;

            return(d());
        }
Exemplo n.º 2
0
        public static bool CallDelegateGenericReturnStructB()
        {
            status = 5;
            DelegateGenericReturn <B> d = DelegateReturnStructBTarget;
            B res = d();

            return(res.Value1 == 5 && res.Value2 == 10);
        }
Exemplo n.º 3
0
        public static int CallDelegateGenericReturnStructA(int a)
        {
            status = a;
            DelegateGenericReturn <A> d = DelegateReturnStructATarget;
            A res = d();

            return(res.Value);
        }