public override int GetHashCode() { int hash = 1; if (buzz_ != null) { hash ^= Buzz.GetHashCode(); } if (Where.Length != 0) { hash ^= Where.GetHashCode(); } if (Who.Length != 0) { hash ^= Who.GetHashCode(); } if (How.Length != 0) { hash ^= How.GetHashCode(); } if (What.Length != 0) { hash ^= What.GetHashCode(); } if (Why.Length != 0) { hash ^= Why.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Version != null) { hashCode = hashCode * 59 + Version.GetHashCode(); } if (Status != null) { hashCode = hashCode * 59 + Status.GetHashCode(); } if (Who != null) { hashCode = hashCode * 59 + Who.GetHashCode(); } if (When != null) { hashCode = hashCode * 59 + When.GetHashCode(); } return(hashCode); } }
/// <summary> /// 返回交易信息的哈希值。 /// </summary> /// <returns></returns> public override int GetHashCode() { var hash = 31 + Who.GetHashCode(); hash = 31 * hash + When.GetHashCode(); hash = 31 * hash + Amount.GetHashCode(); return(hash); }
public override int GetHashCode() { var hash = 397 ^ Icon.GetHashCode(); hash = (hash * 397) ^ Who.GetHashCode(); hash = (hash * 397) ^ Message.GetHashCode(); hash = (hash * 397) ^ ChatColor.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int hashCode = Who?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Whom?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ HowMuch.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (who_ != null) { hash ^= Who.GetHashCode(); } if (AddressTerminated != false) { hash ^= AddressTerminated.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (who_ != null) { hash ^= Who.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) hashCode = hashCode * 59 + Type.GetHashCode(); if (When != null) { hashCode = hashCode * 59 + When.GetHashCode(); } if (Who != null) { hashCode = hashCode * 59 + Who.GetHashCode(); } if (Details != null) { hashCode = hashCode * 59 + Details.GetHashCode(); } return(hashCode); } }