/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = (Type != null ? Type.GetHashCode() : 0); result = (result * 397) ^ CanRead.GetHashCode(); result = (result * 397) ^ CanWrite.GetHashCode(); result = (result * 397) ^ (Query != null ? Query.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { var hashCode = -1889003361; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + Name.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Type> .Default.GetHashCode(Type); hashCode = hashCode * -1521134295 + CanWrite.GetHashCode(); hashCode = hashCode * -1521134295 + GetIsPublic.GetHashCode(); hashCode = hashCode * -1521134295 + SetIsPublic.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = 1861411795; unchecked { if (Name != null) { hashCode = hashCode * -1521134295 + Name.GetHashCode(); } if (Category != null) { hashCode = hashCode * -1521134295 + Category.GetHashCode(); } hashCode = hashCode * -1521134295 + CanWrite.GetHashCode(); } return(hashCode); }