feat 人事同步
This commit is contained in:
16
Src/Dlhis.ScheduledTask/Extensions/GetHashCodeExtensions.cs
Normal file
16
Src/Dlhis.ScheduledTask/Extensions/GetHashCodeExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user