fix hashcode

This commit is contained in:
2024-04-03 18:16:27 +08:00
parent 9ef9e92152
commit 63f8b4b6d2

View File

@@ -5,6 +5,7 @@ internal static class GetHashCodeExtensions
public static int SafeGetHashCode(this object o)
{
if (o == null) return 0;
if(string.IsNullOrEmpty(o.ToString())) return 0;
return o.GetHashCode();
}