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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-03-27 20:51:22 +0300
committerAnirudh Agnihotry <anirudhagnihotry098@gmail.com>2018-03-27 22:52:52 +0300
commitcd109d3542b99e73845e25ef0fcf3e844fd75c2f (patch)
tree222a0dfd62e82f9d8429439fc61c0eb42e4f8af9 /src
parent4fe753e766b8f9cbb4713907c9bc168d188ff028 (diff)
Cleanup InternalsVisibleTo (dotnet/coreclr#17185)
Remove InternalsVisibleTo for mscorlib and make sure that corefx still builds with it. Delete global constants that were left-overs from .NET Framework build system. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs8
-rw-r--r--src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs8
-rw-r--r--src/System.Private.CoreLib/shared/System/UnitySerializationHolder.cs8
3 files changed, 6 insertions, 18 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs b/src/System.Private.CoreLib/shared/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs
index 72f62c2b9..e7efa22b2 100644
--- a/src/System.Private.CoreLib/shared/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs
+++ b/src/System.Private.CoreLib/shared/System/Collections/Generic/NonRandomizedStringEqualityComparer.cs
@@ -11,12 +11,8 @@ namespace System.Collections.Generic
// keeps the performance not affected till we hit collision threshold and then we switch to the comparer which is using
// randomized string hashing.
[Serializable] // Required for compatibility with .NET Core 2.0 as we exposed the NonRandomizedStringEqualityComparer inside the serialization blob
-#if CORERT
- public
-#else
- internal
-#endif
- sealed class NonRandomizedStringEqualityComparer : EqualityComparer<string>, ISerializable
+ // Needs to be public to support binary serialization compatibility
+ public sealed class NonRandomizedStringEqualityComparer : EqualityComparer<string>, ISerializable
{
internal static new IEqualityComparer<string> Default { get; } = new NonRandomizedStringEqualityComparer();
diff --git a/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs b/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
index a8b7a187d..eccb9f034 100644
--- a/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
+++ b/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
@@ -20,12 +20,8 @@ namespace System.Collections
/// This should not be used if performance is important for large numbers of elements.
[Serializable]
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
-#if CORERT
- public
-#else
- internal
-#endif
- class ListDictionaryInternal : IDictionary
+ // Needs to be public to support binary serialization compatibility
+ public class ListDictionaryInternal : IDictionary
{
private DictionaryNode head; // Do not rename (binary serialization)
private int version; // Do not rename (binary serialization)
diff --git a/src/System.Private.CoreLib/shared/System/UnitySerializationHolder.cs b/src/System.Private.CoreLib/shared/System/UnitySerializationHolder.cs
index 2f3035670..53323c32b 100644
--- a/src/System.Private.CoreLib/shared/System/UnitySerializationHolder.cs
+++ b/src/System.Private.CoreLib/shared/System/UnitySerializationHolder.cs
@@ -11,12 +11,8 @@ namespace System
/// This only exists for compatibility with .NET Framework.
/// </summary>
[Serializable]
-#if CORERT
- public
-#else
- internal
-#endif
- sealed class UnitySerializationHolder : ISerializable, IObjectReference
+ // Needs to be public to support binary serialization compatibility
+ public sealed class UnitySerializationHolder : ISerializable, IObjectReference
{
internal const int NullUnity = 0x0002;
private readonly int _unityType;