diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-06-14 15:48:53 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-06-14 15:48:53 -0700 |
commit | 9b01b5fb1c61b62ab0bf4f9e9fb33f55cfa85a08 (patch) | |
tree | 771e2871c01733013a1b869e5afa7ce1fe924a21 /src/mscorlib/src/System/Collections | |
parent | 7516e0cce43f41ffef1f3d6c4eaaef3265a76dbe (diff) | |
download | coreclr-9b01b5fb1c61b62ab0bf4f9e9fb33f55cfa85a08.tar.gz coreclr-9b01b5fb1c61b62ab0bf4f9e9fb33f55cfa85a08.tar.bz2 coreclr-9b01b5fb1c61b62ab0bf4f9e9fb33f55cfa85a08.zip |
Fix full framework build break
[tfs-changeset: 1612754]
Diffstat (limited to 'src/mscorlib/src/System/Collections')
-rw-r--r-- | src/mscorlib/src/System/Collections/Generic/Comparer.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mscorlib/src/System/Collections/Generic/Comparer.cs b/src/mscorlib/src/System/Collections/Generic/Comparer.cs index 5fea346d7c..0b2745f4bc 100644 --- a/src/mscorlib/src/System/Collections/Generic/Comparer.cs +++ b/src/mscorlib/src/System/Collections/Generic/Comparer.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Diagnostics.Contracts; //using System.Globalization; using System.Runtime.CompilerServices; +using System.Security; using System.Runtime.Serialization; namespace System.Collections.Generic @@ -214,7 +215,8 @@ namespace System.Collections.Generic public override int GetHashCode() => GetType().GetHashCode(); - + + [SecurityCritical] public void GetObjectData(SerializationInfo info, StreamingContext context) { // Previously Comparer<T> was not specialized for enums, @@ -249,7 +251,8 @@ namespace System.Collections.Generic public override int GetHashCode() => GetType().GetHashCode(); - + + [SecurityCritical] public void GetObjectData(SerializationInfo info, StreamingContext context) { info.SetType(typeof(ObjectComparer<T>)); @@ -280,7 +283,8 @@ namespace System.Collections.Generic public override int GetHashCode() => GetType().GetHashCode(); - + + [SecurityCritical] public void GetObjectData(SerializationInfo info, StreamingContext context) { info.SetType(typeof(ObjectComparer<T>)); @@ -311,7 +315,8 @@ namespace System.Collections.Generic public override int GetHashCode() => GetType().GetHashCode(); - + + [SecurityCritical] public void GetObjectData(SerializationInfo info, StreamingContext context) { info.SetType(typeof(ObjectComparer<T>)); |