This commit is contained in:
vis2k 2021-03-27 11:30:52 +08:00
parent a4eb0c4d77
commit afc4f584fc

View File

@ -158,7 +158,7 @@ static bool WeaveModule(ModuleDefinition moduleDefinition)
static void CreateGeneratedCodeClass()
{
// create "Mirror.GeneratedNetworkCode" class
GeneratedCodeClass = new TypeDefinition(Weaver.GeneratedCodeNamespace, Weaver.GeneratedCodeClassName,
GeneratedCodeClass = new TypeDefinition(GeneratedCodeNamespace, GeneratedCodeClassName,
TypeAttributes.BeforeFieldInit | TypeAttributes.Class | TypeAttributes.AnsiClass | TypeAttributes.Public | TypeAttributes.AutoClass | TypeAttributes.Abstract | TypeAttributes.Sealed,
WeaverTypes.Import<object>());
}