fix 重构数据同步
This commit is contained in:
15
Src/Dlhis.ScheduledTask/SyncSapInfo/GetHashCodeExtensions.cs
Normal file
15
Src/Dlhis.ScheduledTask/SyncSapInfo/GetHashCodeExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Dlhis.ScheduledTask.SyncSapInfo;
|
||||
|
||||
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