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

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs')
-rw-r--r--src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs b/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs
index fbee608bbf4..aedbfa953bf 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.cs
@@ -243,7 +243,7 @@ namespace System.Collections.Generic
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
// For back-compat we need to serialize the comparers for enums with underlying types other than int as ObjectEqualityComparer
- if (Type.GetTypeCode(Enum.GetUnderlyingType(typeof(T))) != TypeCode.Int32)
+ if (Type.GetTypeCode(typeof(T)) != TypeCode.Int32)
{
info.SetType(typeof(ObjectEqualityComparer<T>));
}