dotnet / linker

389 stars 126 forks source link

Change Metadata call in DAM Code Fix #2987

Closed iserrato closed 2 years ago

iserrato commented 2 years ago

Also for future follow-up work: The Roslyn team recommends not using the GetTypeByMetadataName API and instead using the GetTypesByMetadataName API and handle filtering those results to the correct ones for your scenario (or copying the GetBestTypeByMetadataName API from dotnet/roslyn or dotnet/runtime).

_Originally posted by @jkoritzinsky in https://github.com/dotnet/linker/pull/2939#discussion_r946093119_