internal void DefineType(String typename, bool ispublic, Type inheritfromclass) {
if (ispublic)
_typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.Public, inheritfromclass);
else
_typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.NotPublic, inheritfromclass);
}