From: Santiago Fernandez Madero Date: Tue, 16 Apr 2019 20:24:55 +0000 (-0700) Subject: Fix if condition in AssemblyLoadContext X-Git-Tag: accepted/tizen/unified/20190813.215958~46^2~27^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc1cea76ccb643f962409af410aa33b3c776638d;p=platform%2Fupstream%2Fcoreclr.git Fix if condition in AssemblyLoadContext --- diff --git a/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreCLR.cs b/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreCLR.cs index c9bb722..45a2c7f 100644 --- a/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreCLR.cs +++ b/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreCLR.cs @@ -142,7 +142,7 @@ namespace System.Runtime.Loader { throw new ArgumentException(SR.ArgumentNull_AssemblyNameName); } - if (string.IsNullOrEmpty(loadedSimpleName) || requestedSimpleName.Equals(loadedSimpleName, StringComparison.InvariantCultureIgnoreCase)) + if (string.IsNullOrEmpty(loadedSimpleName) || !requestedSimpleName.Equals(loadedSimpleName, StringComparison.InvariantCultureIgnoreCase)) { throw new InvalidOperationException(SR.Argument_CustomAssemblyLoadContextRequestedNameMismatch); }