-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
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); |
There was a problem hiding this comment.
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
runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameFormatter.cs
Lines 74 to 75 in 4c92aef
if (contentType == AssemblyContentType.WindowsRuntime) | |
sb.Append(", ContentType=WindowsRuntime"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.