diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-04-10 19:12:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 19:12:26 -0400 |
commit | 1998523590276ce8af34cf264b912f16feeee9b2 (patch) | |
tree | d5fb5e673f44f9c913fe321f2f20b5422cae95b9 /src/System.Private.CoreLib/shared/System/AppDomain.cs | |
parent | 9a715feffb9c4b39a3f98a03c925aba4e9eafd7d (diff) | |
download | coreclr-1998523590276ce8af34cf264b912f16feeee9b2.tar.gz coreclr-1998523590276ce8af34cf264b912f16feeee9b2.tar.bz2 coreclr-1998523590276ce8af34cf264b912f16feeee9b2.zip |
Address follow-up PR feedback on System nullability annotations (#23878)
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/AppDomain.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/AppDomain.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/shared/System/AppDomain.cs b/src/System.Private.CoreLib/shared/System/AppDomain.cs index be238e32b3..b1a20551b5 100644 --- a/src/System.Private.CoreLib/shared/System/AppDomain.cs +++ b/src/System.Private.CoreLib/shared/System/AppDomain.cs @@ -364,10 +364,10 @@ namespace System return Activator.CreateInstanceFrom(assemblyFile, typeName, activationAttributes); } - public object CreateInstanceFromAndUnwrap(string assemblyFile, string typeName) + public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName) { ObjectHandle? oh = CreateInstanceFrom(assemblyFile, typeName); - return oh?.Unwrap()!; + return oh?.Unwrap(); } public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) @@ -380,13 +380,13 @@ namespace System args, culture, activationAttributes); - return oh?.Unwrap()!; + return oh?.Unwrap(); } public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, object?[]? activationAttributes) { ObjectHandle? oh = CreateInstanceFrom(assemblyFile, typeName, activationAttributes); - return oh?.Unwrap()!; + return oh?.Unwrap(); } public IPrincipal? GetThreadPrincipal() |