diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-02-10 16:37:26 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-02-10 16:37:26 +0300 |
commit | 501c2632493796ba50b43ec06d2e930cd556fc23 (patch) | |
tree | c41cfe069703ce5cda75fc337a041c6d457283cb /src/Microsoft.CSharp | |
parent | f56fc8ede0dcfa3b52490535f882847855064bbd (diff) |
Microsoft.CSharp fix for assembly names comparison to work with not strongly named assemblies as well
Diffstat (limited to 'src/Microsoft.CSharp')
-rw-r--r-- | src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs b/src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs index d121d6ba8b..b69ea52d60 100644 --- a/src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs +++ b/src/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs @@ -1318,17 +1318,11 @@ namespace Microsoft.CSharp.RuntimeBinder.Semantics goto SetMemo; } -#if UNSUPPORTEDAPI result = assemblyThatDefinesAttribute.GetCustomAttributes() .OfType<InternalsVisibleToAttribute>() .Select(ivta => new AssemblyName(ivta.AssemblyName)) .Any(an => AssemblyName.ReferenceMatchesDefinition(an, assyName)); -#else - result = Enumerable.Any(assemblyThatDefinesAttribute.GetCustomAttributes() - .OfType<InternalsVisibleToAttribute>() - .Select(ivta => new AssemblyName(ivta.AssemblyName)), - an => an.Equals(assyName)); -#endif + SetMemo: _internalsVisibleToCalculated[key] = result; } |