summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSantiago Fernandez Madero <safern@microsoft.com>2019-04-16 13:24:55 -0700
committerSantiago Fernandez Madero <safern@microsoft.com>2019-04-16 13:24:55 -0700
commitfc1cea76ccb643f962409af410aa33b3c776638d (patch)
tree8b69bcfd918f4a91357a60ca07a2a7af945da37a /src
parentb6907db12eff4fa7cf956eb770f66c8ffa7b274d (diff)
downloadcoreclr-fc1cea76ccb643f962409af410aa33b3c776638d.tar.gz
coreclr-fc1cea76ccb643f962409af410aa33b3c776638d.tar.bz2
coreclr-fc1cea76ccb643f962409af410aa33b3c776638d.zip
Fix if condition in AssemblyLoadContext
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.CoreCLR.cs2
1 files changed, 1 insertions, 1 deletions
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 c9bb722115..45a2c7f65b 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);
}