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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missed nullable junk
  • Loading branch information
MichalStrehovsky committed Jul 15, 2021
commit cd8ecfb1f059cb23fcdf2a3eb23fe0ee97eb2a66
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ public static partial class Activator
assembly = RuntimeAssembly.InternalLoad(assemblyName, ref stackMark, AssemblyLoadContext.CurrentContextualReflectionContext);
}

Type type = assembly!.GetType(typeName, throwOnError: true, ignoreCase);
Type type = assembly.GetType(typeName, throwOnError: true, ignoreCase);

object? o = CreateInstance(type!, bindingAttr, binder, args, culture, activationAttributes);
object? o = CreateInstance(type, bindingAttr, binder, args, culture, activationAttributes);

return o != null ? new ObjectHandle(o) : null;
}
Expand Down