Files
jinko.yikatong/Src/Dlhis.ScheduledTask/Extensions/GetHashCodeExtensions.cs
2024-01-04 14:40:04 +08:00

17 lines
369 B
C#

namespace Dlhis.ScheduledTask.Extensions
{
internal static class GetHashCodeExtensions
{
public static int SafeGetHashCode(this object o)
{
if (o == null) return 0;
return o.GetHashCode();
}
public static int SafeGetHashCode(this int o)
{
return o.GetHashCode();
}
}
}