Skip to content

Commit

Permalink
Fix compile break on netstandard1.6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Feb 8, 2020
1 parent 7ebae83 commit 93015bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MessagePack/MessagePackSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ public IEqualityComparer GetEqualityComparer()
protected virtual IEqualityComparer<T> GetHashCollisionResistantEqualityComparer<T>()
{
IEqualityComparer<T> result = null;
if (typeof(T).IsEnum)
if (typeof(T).GetTypeInfo().IsEnum)
{
Type underlyingType = typeof(T).GetEnumUnderlyingType();
Type underlyingType = typeof(T).GetTypeInfo().GetEnumUnderlyingType();
result =
underlyingType == typeof(sbyte) ? CollisionResistantHasher<T>.Instance :
underlyingType == typeof(byte) ? CollisionResistantHasher<T>.Instance :
Expand Down

0 comments on commit 93015bb

Please sign in to comment.