Skip to content

Commit

Permalink
fix null type
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed May 5, 2024
1 parent ad0abf1 commit 31413d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/by/By.Hash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public partial class By : IBy
{
public static Types Hash<T>(T value)
{
if (value == null) return Types.Null;

Type type = typeof(T) == typeof(Type) ? (Type)(object)value : value.GetType();

if (type == typeof(sbyte)) return Types.Sbyte;
Expand Down

0 comments on commit 31413d1

Please sign in to comment.