dotnet/runtime
Support resolving metadata tokens in MetadataLoadContext
オープン
#87,657 opened on 2023/06/15
area-System.Reflectionfeature-requesthelp wanted
Repository metrics
- Stars
- (17,886 個のスター)
- PR merge metrics
- (平均マージ 12d 11h) (30d で 661 merged PRs)
説明
When using MetadataLoadContext, Module.{ResolveType,ResolveMember,ResolveMethod,ResolveField,ResolveSignature,ResolveString} all throw NotSupportedException.
This is inconvenient for advanced reflection scenarios. For example, if you are scanning IL code (perhaps retrieved using MethodBody.GetILAsByteArray), these methods are the only way to resolve MemberRefs and TypeRefs used in IL.
I do not think there is a technical reason that prevents these methods from working. If everything looks OK with this idea then I am happy to implement these.