/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked { return((Currency.GetHashCode() * 397) ^ Value.GetHashCode()); } }
public override int GetHashCode() { int hash = 1; if (PlayerId.Length != 0) { hash ^= PlayerId.GetHashCode(); } if (Adjustment != 0) { hash ^= Adjustment.GetHashCode(); } if (CurrencyType.Length != 0) { hash ^= CurrencyType.GetHashCode(); } if (Reason.Length != 0) { hash ^= Reason.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 17; hash = hash * 23 + CurrencyType.GetHashCode(); hash = hash * 23 + Value.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int hash = (int)2166136261; // Suitable nullity checks etc, of course :) hash = (hash * 16777619) ^ flowType.GetHashCode(); hash = (hash * 16777619) ^ currencyType.GetHashCode(); hash = (hash * 16777619) ^ currencyEventType.GetHashCode(); hash = (hash * 16777619) ^ eventItemId.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (CurrencyType.Length != 0) { hash ^= CurrencyType.GetHashCode(); } if (Price != 0) { hash ^= Price.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (CurrencyType != 0) { hash ^= CurrencyType.GetHashCode(); } if (Usage != 0L) { hash ^= Usage.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(type.GetHashCode() ^ value.GetHashCode()); }