Пример #1
0
        public object TestMethod(T t)
        {
            WrapperGeneric <T> wrapper = new WrapperGeneric <T>();

            wrapper.value = t;
            return(HandleWrapperGenericMethodClass1.UnwrapWrapperGeneric <WrapperGeneric <T>, int>(wrapper));
        }
Пример #2
0
        public object TestMethod(T t)
        {
            AllocableGeneric <WrapperGeneric <T>, int> canonGenericUsed = new AllocableGeneric <WrapperGeneric <T>, int>();
            WrapperGeneric <T> wrapper = new WrapperGeneric <T>();

            wrapper.value        = t;
            canonGenericUsed.val = wrapper;
            return(canonGenericUsed);
        }