Writers: remove Weaver.CurrentAssembly reference

This commit is contained in:
vis2k 2021-08-17 22:15:04 +08:00
parent 5098868c2a
commit df716572f5

View File

@ -280,7 +280,7 @@ MethodDefinition GenerateCollectionWriter(TypeReference variable, TypeReference
ModuleDefinition module = assembly.MainModule;
TypeReference readerExtensions = module.ImportReference(typeof(NetworkWriterExtensions));
MethodReference collectionWriter = Resolvers.ResolveMethod(readerExtensions, Weaver.CurrentAssembly, writerFunction);
MethodReference collectionWriter = Resolvers.ResolveMethod(readerExtensions, assembly, writerFunction);
GenericInstanceMethod methodRef = new GenericInstanceMethod(collectionWriter);
methodRef.GenericArguments.Add(elementType);