We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456b495 commit 95aac9cCopy full SHA for 95aac9c
src/MessagePack/MessagePackSecurity.cs
@@ -158,9 +158,9 @@ public IEqualityComparer GetEqualityComparer()
158
protected virtual IEqualityComparer<T> GetHashCollisionResistantEqualityComparer<T>()
159
{
160
IEqualityComparer<T> result = null;
161
- if (typeof(T).IsEnum)
+ if (typeof(T).GetTypeInfo().IsEnum)
162
163
- Type underlyingType = typeof(T).GetEnumUnderlyingType();
+ Type underlyingType = typeof(T).GetTypeInfo().GetEnumUnderlyingType();
164
result =
165
underlyingType == typeof(sbyte) ? CollisionResistantHasher<T>.Instance :
166
underlyingType == typeof(byte) ? CollisionResistantHasher<T>.Instance :
0 commit comments