protected virtual void InitializeGenericArgumentsFromBases(ref Type baseType, ref Type[] interfaces)
{
if (baseType.IsGenericTypeDefinition)
{
throw new NotSupportedException("ClassEmitter does not support open generic base types. Type: " + baseType.FullName);
}
foreach(Type inter in interfaces)
{
if (inter.IsGenericTypeDefinition)
{
throw new NotSupportedException("ClassEmitter does not support open generic interfaces. Type: " + inter.FullName);
}
}
}
}