Files
jinko.yikatong/Src/Dlhis.Basic/Organization/Services/Implements/GetHashCodeExtensions.cs
2024-11-26 15:26:12 +08:00

12 lines
295 B
C#

namespace Dlhis.Basic.Organization.Services.Implements;
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();
}
}