Readers: remove Weaver.CurrentAssembly reference

This commit is contained in:
vis2k 2021-08-17 22:15:25 +08:00
parent df716572f5
commit 2f7ce58dc7

View File

@ -228,7 +228,7 @@ MethodDefinition GenerateReadCollection(TypeReference variable, TypeReference el
ModuleDefinition module = assembly.MainModule;
TypeReference readerExtensions = module.ImportReference(typeof(NetworkReaderExtensions));
MethodReference listReader = Resolvers.ResolveMethod(readerExtensions, Weaver.CurrentAssembly, readerFunction);
MethodReference listReader = Resolvers.ResolveMethod(readerExtensions, assembly, readerFunction);
GenericInstanceMethod methodRef = new GenericInstanceMethod(listReader);
methodRef.GenericArguments.Add(elementType);