diff options
author | Samuel Arzt <arzt.samuel@live.de> | 2017-11-17 17:47:34 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-11-17 17:47:34 +0300 |
commit | b295b1a3ac5b53717109f5da330b54a707a5ee82 (patch) | |
tree | 0537f09be480978a3fd63c83bc51fb1d39997585 /src/ILVerify | |
parent | 4eada9a5ec5e7e3243a85f7d3399a7e0474ab2f8 (diff) |
Changed assembly friend access comparison to use OrdinalIgnoreCase. (#4954)
Diffstat (limited to 'src/ILVerify')
-rw-r--r-- | src/ILVerify/src/AccessVerificationHelpers.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ILVerify/src/AccessVerificationHelpers.cs b/src/ILVerify/src/AccessVerificationHelpers.cs index b0f31bd2a..896643273 100644 --- a/src/ILVerify/src/AccessVerificationHelpers.cs +++ b/src/ILVerify/src/AccessVerificationHelpers.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using System.Diagnostics; using System.Reflection; using Internal.TypeSystem; @@ -257,7 +258,7 @@ namespace ILVerify foreach (var attribute in assembly.GetDecodedCustomAttributes("System.Runtime.CompilerServices", "InternalsVisibleToAttribute")) { AssemblyName friendAttributeName = new AssemblyName((string)attribute.FixedArguments[0].Value); - if (friendName.Name != friendAttributeName.Name) + if (!friendName.Name.Equals(friendAttributeName.Name, StringComparison.OrdinalIgnoreCase)) continue; // Comparing PublicKeyToken, since GetPublicKey returns null due to a bug |