Skip to content
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 authored 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