Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2017-02-10 16:37:26 +0300
committerMarek Safar <marek.safar@gmail.com>2017-02-10 16:37:26 +0300
commit501c2632493796ba50b43ec06d2e930cd556fc23 (patch)
treec41cfe069703ce5cda75fc337a041c6d457283cb /src/Microsoft.CSharp
parentf56fc8ede0dcfa3b52490535f882847855064bbd (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.cs8
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;
}