Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete dead WinRT code in Activator #55721

Merged
merged 3 commits into from
Jul 16, 2021
Merged

Conversation

MichalStrehovsky
Copy link
Member

No description provided.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

{
type = assembly!.GetType(typeName, throwOnError: true, ignoreCase);
}
Type? type = assembly.GetType(typeName, throwOnError: true, ignoreCase);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this code wasn't needed anymore, is

if (contentType == AssemblyContentType.WindowsRuntime)
sb.Append(", ContentType=WindowsRuntime");
still needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that can also be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that one is reachable:

using System;

Console.WriteLine(AssemblyName.GetAssemblyName(@"C:\Windows\System32\WinMetadata\Windows.UI.winmd"));
Windows.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime

@MichalStrehovsky MichalStrehovsky merged commit e828a01 into main Jul 16, 2021
@MichalStrehovsky MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch July 16, 2021 07:51
@ghost ghost locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants