AddGenericTypeVarArg() public method

public AddGenericTypeVarArg ( GenericTypeVar arg ) : void
arg GenericTypeVar
return void
Ejemplo n.º 1
0
        public static void CheckTypeParameterizedTypeImpl(GenericTypeVar g, Type type)
        {
            TypeInfo typeInfo = type.GetTypeInfo();

            if (typeInfo.IsGenericType)
            {
                g.ClassDescriptor = ClassDescriptor.GetClassDescriptor(type);

                Type[] types = typeInfo.GenericTypeArguments;

                foreach (Type t in types)
                {
                    g.AddGenericTypeVarArg(GenericTypeVar.GetGenericTypeVarRef(t, g.Scope));
                }
            }
        }
Ejemplo n.º 2
0
        public static void CheckTypeParameterizedTypeImpl(GenericTypeVar g, Type type)
        {
            TypeInfo typeInfo = type.GetTypeInfo();
            if (typeInfo.IsGenericType)
            {
                g.ClassDescriptor = ClassDescriptor.GetClassDescriptor(type);

                Type[] types = typeInfo.GenericTypeArguments;

                foreach (Type t in types)
                {
                    g.AddGenericTypeVarArg(GenericTypeVar.GetGenericTypeVarRef(t, g.Scope));
                }
            }
        }