xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.46k stars 511 forks source link

Use Type.GetMemberWithSameMetadataDefinitionAs to speed up finding closed generic members #18355

Open rolfbjarne opened 1 year ago

rolfbjarne commented 1 year ago

See comment here for more info: https://github.com/dotnet/runtime/issues/86649#issuecomment-1564037717

Ref: https://learn.microsoft.com/en-us/dotnet/api/system.type.getmemberwithsamemetadatadefinitionas?view=net-6.0

filipnavara commented 1 year ago

Is this still relevant with https://github.com/xamarin/xamarin-macios/pull/18421 ?

rolfbjarne commented 1 year ago

Is this still relevant with #18421 ?

It doesn't hurt making the dynamic registrar faster too.