using System.Diagnostics.Contracts;
//using System.Globalization;
using System.Runtime.CompilerServices;
+using System.Security;
using System.Runtime.Serialization;
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,
public override int GetHashCode() =>
GetType().GetHashCode();
-
+
+ [SecurityCritical]
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.SetType(typeof(ObjectComparer<T>));
public override int GetHashCode() =>
GetType().GetHashCode();
-
+
+ [SecurityCritical]
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.SetType(typeof(ObjectComparer<T>));
public override int GetHashCode() =>
GetType().GetHashCode();
-
+
+ [SecurityCritical]
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.SetType(typeof(ObjectComparer<T>));