public AddContraintGenericTypeVarArg ( |
||
g | ||
리턴 | void |
public static void CheckBoundParameterizedTypeImpl(GenericTypeVar g, Type bound) { TypeInfo typeInfo = bound.GetTypeInfo(); if (typeInfo.IsGenericType) { g.ConstraintClassDescriptor = ClassDescriptor.GetClassDescriptor(bound); Type[] types = typeInfo.GenericTypeArguments; foreach (Type type in types) { g.AddContraintGenericTypeVarArg(GenericTypeVar.GetGenericTypeVarRef(type, g.Scope)); } } }
public static void CheckBoundParameterizedTypeImpl(GenericTypeVar g, Type bound) { TypeInfo typeInfo = bound.GetTypeInfo(); if (typeInfo.IsGenericType) { g.ConstraintClassDescriptor = ClassDescriptor.GetClassDescriptor(bound); Type[] types = typeInfo.GenericTypeArguments; foreach (Type type in types) { g.AddContraintGenericTypeVarArg(GenericTypeVar.GetGenericTypeVarRef(type, g.Scope)); } } }