public override int GetHashCode() { int hash = 1; hash ^= method_.GetHashCode(); if (IncomePerSecond != 0) { hash ^= IncomePerSecond.GetHashCode(); } if (InitialBalance != 0) { hash ^= InitialBalance.GetHashCode(); } if (CapBalance != 0) { hash ^= CapBalance.GetHashCode(); } if (StartupPeriod != 0F) { hash ^= StartupPeriod.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ServiceName.Length != 0) { hash ^= ServiceName.GetHashCode(); } if (MethodName.Length != 0) { hash ^= MethodName.GetHashCode(); } if (FixedCallCost != 0) { hash ^= FixedCallCost.GetHashCode(); } if (FixedPacketSize != 0) { hash ^= FixedPacketSize.GetHashCode(); } if (VariableMultiplier != 0F) { hash ^= VariableMultiplier.GetHashCode(); } if (Multiplier != 0F) { hash ^= Multiplier.GetHashCode(); } if (RateLimitCount != 0) { hash ^= RateLimitCount.GetHashCode(); } if (RateLimitSeconds != 0) { hash ^= RateLimitSeconds.GetHashCode(); } if (MaxPacketSize != 0) { hash ^= MaxPacketSize.GetHashCode(); } if (MaxEncodedSize != 0) { hash ^= MaxEncodedSize.GetHashCode(); } if (Timeout != 0F) { hash ^= Timeout.GetHashCode(); } if (CapBalance != 0) { hash ^= CapBalance.GetHashCode(); } if (IncomePerSecond != 0F) { hash ^= IncomePerSecond.GetHashCode(); } if (ServiceHash != 0) { hash ^= ServiceHash.GetHashCode(); } if (MethodId != 0) { hash ^= MethodId.GetHashCode(); } return(hash); }