Skip to content

Commit

Permalink
fix struct type
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed May 4, 2024
1 parent 3b6a4d0 commit 6c6ecce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/by/By.Hash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static Types Hash<T>(T value)
if (type == typeof(string)) return Types.String;
if (type == typeof(BigInteger)) return Types.BigInteger;
if (type.IsClass) return Types.Class;
if (type.IsConstructedGenericType) return Types.Struct;
if (type.IsValueType && !type.IsEnum && !type.IsPrimitive) return Types.Struct;
if (type.IsArray) return Types.Array;
if (type == typeof(DateTime)) return Types.DateTime;

Expand Down

0 comments on commit 6c6ecce

Please sign in to comment.