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)); } } }