AddGenericTypeVarArg() public method

public AddGenericTypeVarArg ( GenericTypeVar arg ) : void
arg GenericTypeVar
return void
Exemplo 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));
                }
            }
        }
Exemplo 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));
                }
            }
        }