Skip to content

Commit 95aac9c

Browse files
Fix compile break on netstandard1.6 build
1 parent 456b495 commit 95aac9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MessagePack/MessagePackSecurity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public IEqualityComparer GetEqualityComparer()
158158
protected virtual IEqualityComparer<T> GetHashCollisionResistantEqualityComparer<T>()
159159
{
160160
IEqualityComparer<T> result = null;
161-
if (typeof(T).IsEnum)
161+
if (typeof(T).GetTypeInfo().IsEnum)
162162
{
163-
Type underlyingType = typeof(T).GetEnumUnderlyingType();
163+
Type underlyingType = typeof(T).GetTypeInfo().GetEnumUnderlyingType();
164164
result =
165165
underlyingType == typeof(sbyte) ? CollisionResistantHasher<T>.Instance :
166166
underlyingType == typeof(byte) ? CollisionResistantHasher<T>.Instance :

0 commit comments

Comments
 (0)