CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.

Home Page:https://aka.ms/windowsappsdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Why break after `Application` type found?

MartinZikmund opened this issue · comments

While browsing the code we noticed that in MetadataProviderDiscovery the enumeration is stopped when a type derived from Application is found. Is this intentional? This seems that a mere change in type name could result in different output of the DiscoverMetadataProviders method - e.g. if the type deriving from application will be called ZApplication it will probably show up last in the list of types, so all IXamlMetadataProvider types will be returned, but if we rename it to AAplication it will now be discovered early and will be the only thing returned, potentially.

Hello MartinZikmund, thank you for your interest in Win32!

I have automatically added a "needs triage" label to help get things started. Our team will look into the question and answer ASAP. Other community members may also answer the question and provide feedback 🙌