jbevain / cecil

Cecil is a library to inspect, modify and create .NET programs and libraries.
MIT License
2.76k stars 627 forks source link

Unity 2022 Queue.Clear Resolve returns null. #898

Open FirstGearGames opened 1 year ago

FirstGearGames commented 1 year ago

Unity 2022. Using resolve on Queue.Clear returns null.

            MethodReference qClearMr = base.ImportReference(typeof(Queue<>).GetMethod("Clear"));
            MethodDefinition qClearMd = qClearMr.Resolve(); //returns null, qClearMr is not null.