Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked {
         return
             (base.GetHashCode()
              + 17 * Numerator?.GetHashCode() ?? 0
              + 19 * Denominator?.GetHashCode() ?? 0
              + 61 * LeftDelimiter?.GetHashCode() ?? 0
              + 101 * RightDelimiter?.GetHashCode() ?? 0);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Numerator.GetHashCode() ^ Denominator.GetHashCode());
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return($"RoyaltyDefinition:{RoyaltyType.GetHashCode()}:{Account?.GetHashCode()}:{Token?.GetHashCode()}:{FixedAmount?.GetHashCode()}:{Numerator?.GetHashCode()}:{Denominator?.GetHashCode()}:{FallbackAmount?.GetHashCode()}:{FallbackToken?.GetHashCode()}:{Minimum?.GetHashCode()}:{Maximum?.GetHashCode()}:{AssessAsSurcharge.GetHashCode()}".GetHashCode());
 }
 public override int GetHashCode() => unchecked (Denominator.GetHashCode() * 397) ^ Numerator.GetHashCode();