Ejemplo n.º 1
0
        public static TypeInformation <T> CreateTypeInfo <T>()
        {
            var ti = new TypeExtractor().PrivateCreateTypeInfo <object, object, T>();

            if (ti == null)
            {
                throw new InvalidTypesException("Could not extract type information.");
            }

            return(ti);
        }
Ejemplo n.º 2
0
        public static TypeInformation <TOutput> CreateTypeInfo <TInput1, TInput2, TOutput>(
            Type baseClass,
            Type clazz,
            int returnParamPos,
            TypeInformation <TInput1> in1Type,
            TypeInformation <TInput2> in2Type)
        {
            var ti = new TypeExtractor().PrivateCreateTypeInfo <TInput1, TInput2, TOutput>(baseClass, clazz, returnParamPos, in1Type, in2Type);

            if (ti == null)
            {
                throw new InvalidTypesException("Could not extract type information.");
            }

            return(ti);
        }