public EasyType(ModuleScope modulescope, String name, Type baseType, Type[] interfaces, bool serializable)
: this()
{
TypeAttributes flags =
TypeAttributes.Public | TypeAttributes.Class | TypeAttributes.Serializable;
if (serializable)
{
flags |= TypeAttributes.Serializable;
}
bool isAssemblySigned = IsAssemblySigned(baseType);
_typebuilder = modulescope.ObtainDynamicModule(isAssemblySigned).DefineType(
name, flags, baseType, interfaces);
}