refactor 优化代码
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user