/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Axis != null) { hashCode = hashCode * 59 + Axis.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (Format != null) { hashCode = hashCode * 59 + Format.GetHashCode(); } if (Minimum != null) { hashCode = hashCode * 59 + Minimum.GetHashCode(); } if (Maximum != null) { hashCode = hashCode * 59 + Maximum.GetHashCode(); } if (Position != null) { hashCode = hashCode * 59 + Position.GetHashCode(); } if (MajorColor != null) { hashCode = hashCode * 59 + MajorColor.GetHashCode(); } if (MajorWidth != null) { hashCode = hashCode * 59 + MajorWidth.GetHashCode(); } if (MajorStyle != null) { hashCode = hashCode * 59 + MajorStyle.GetHashCode(); } if (MinorColor != null) { hashCode = hashCode * 59 + MinorColor.GetHashCode(); } if (MinorWidth != null) { hashCode = hashCode * 59 + MinorWidth.GetHashCode(); } if (MinorStyle != null) { hashCode = hashCode * 59 + MinorStyle.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { var hash = 23; hash = hash * 31 + Minimum.GetHashCode(); return(hash * 31 + Maximum.GetHashCode()); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Minimum != null) { hashCode = hashCode * 59 + Minimum.GetHashCode(); } if (Maximum != null) { hashCode = hashCode * 59 + Maximum.GetHashCode(); } if (Step != null) { hashCode = hashCode * 59 + Step.GetHashCode(); } if (Pattern != null) { hashCode = hashCode * 59 + Pattern.GetHashCode(); } if (ReadOnly != null) { hashCode = hashCode * 59 + ReadOnly.GetHashCode(); } if (Options != null) { hashCode = hashCode * 59 + Options.GetHashCode(); } return(hashCode); } }
/// <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 (Code != null) { hashCode = hashCode * 59 + Code.GetHashCode(); } if (ChargingTriggerInfo != null) { hashCode = hashCode * 59 + ChargingTriggerInfo.GetHashCode(); } if (Prices != null) { hashCode = hashCode * 59 + Prices.GetHashCode(); } if (Minimum != null) { hashCode = hashCode * 59 + Minimum.GetHashCode(); } if (Maximum != null) { hashCode = hashCode * 59 + Maximum.GetHashCode(); } return(hashCode); } }
/// <summary> /// Serves as the default hash function. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { return((Minimum.GetHashCode() * 397) ^ Maximum.GetHashCode()); } }
public override int GetHashCode() { int h1 = Minimum.GetHashCode(); int h2 = Maximum.GetHashCode(); return(((h1 << 5) + h1) ^ h2); }
public override int GetHashCode() { var hashCode = 913158992; hashCode = (hashCode * -1521134295) + Minimum.GetHashCode(); hashCode = (hashCode * -1521134295) + Maximum.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = -998666383; hashCode = hashCode * -1521134295 + Raw.GetHashCode(); hashCode = hashCode * -1521134295 + Minimum.GetHashCode(); hashCode = hashCode * -1521134295 + Maximum.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 17; hash = hash * 23 + Value.GetHashCode(); hash = hash * 23 + Minimum.GetHashCode(); hash = hash * 23 + Maximum.GetHashCode(); return(hash); }
/// <summary>Returns the hash code for this instance.</summary> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> public override int GetHashCode() { unchecked { var hashCode = Minimum.GetHashCode(); hashCode = (hashCode * 397) ^ Maximum.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Unit; return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 29 + Minimum.GetHashCode(); hash = hash * 29 + Maximum.GetHashCode(); hash = hash * 29 + IsMinimumOpen.GetHashCode(); hash = hash * 29 + IsMaximumOpen.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hashCode = 205049560; hashCode = hashCode * -1521134295 + Transform.GetHashCode(); hashCode = hashCode * -1521134295 + Material.GetHashCode(); hashCode = hashCode * -1521134295 + SavedRay.GetHashCode(); hashCode = hashCode * -1521134295 + Parent.GetHashCode(); hashCode = hashCode * -1521134295 + HasParent.GetHashCode(); hashCode = hashCode * -1521134295 + Maximum.GetHashCode(); hashCode = hashCode * -1521134295 + Minimum.GetHashCode(); hashCode = hashCode * -1521134295 + Closed.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = 0; unchecked { if (Minimum != null) { hashCode += 1000000007 * Minimum.GetHashCode(); } if (Maximum != null) { hashCode += 1000000009 * Maximum.GetHashCode(); } } return(hashCode); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = Type.GetHashCode(); hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Schema?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Comment?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Title?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Default?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MultipleOf.GetHashCode(); hashCode = (hashCode * 397) ^ Maximum.GetHashCode(); hashCode = (hashCode * 397) ^ ExclusiveMaximum.GetHashCode(); hashCode = (hashCode * 397) ^ Minimum.GetHashCode(); hashCode = (hashCode * 397) ^ ExclusiveMinimum.GetHashCode(); hashCode = (hashCode * 397) ^ (MaxLength?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MinLength?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Pattern?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AdditionalItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Items?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MaxItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MinItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (UniqueItems?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Contains?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AdditionalProperties?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Definitions?.GetCollectionHashCode().GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Properties?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PatternProperties?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Dependencies?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Const?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Enum?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Format?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ContentMediaType?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ContentEncoding?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (If?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Then?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Else?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AllOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AnyOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OneOf?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Not?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Required?.GetCollectionHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Examples?.GetCollectionHashCode() ?? 0); return(hashCode); } }
/// <summary> /// Serves as a hash of this type. /// </summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { return (Depth.GetHashCode() ^ Entropy.GetHashCode() ^ Kurtosis.GetHashCode() ^ Maximum.GetHashCode() ^ Mean.GetHashCode() ^ Minimum.GetHashCode() ^ Skewness.GetHashCode() ^ StandardDeviation.GetHashCode() ^ Sum.GetHashCode() ^ SumCubed.GetHashCode() ^ SumFourthPower.GetHashCode() ^ SumSquared.GetHashCode() ^ Variance.GetHashCode()); }
/// <inheritdoc /> public override int GetHashCode() { return(Minimum.GetHashCode() ^ Maximum.GetHashCode()); }
/// <summary> /// Serves as a hash function for a particular type /// </summary> /// <returns>A hash code for the current <see cref="Interval"/></returns> public override int GetHashCode() { return((33 + Minimum.GetHashCode()) * 33 + Maximum.GetHashCode()); }
public override int GetHashCode() { return(Minimum.GetHashCode() ^ Maximum.GetHashCode() ^ (Step == null ? 0 : Step.GetHashCode())); }
public override int GetHashCode() => Minimum.GetHashCode() + Maximum.GetHashCode();
public override int GetHashCode() { return(Minimum.GetHashCode() ^ Maximum.GetHashCode() ^ ((Item != null) ? Item.GetHashCode() : 0)); }
public override int GetHashCode() { return(31 * Minimum.GetHashCode() + Maximum.GetHashCode()); }
public override int GetHashCode() { return(unchecked (Minimum.GetHashCode() * (int)0xA5555529 + Maximum.GetHashCode())); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> public override Int32 GetHashCode() { return((Minimum.GetHashCode() >> 2) ^ Maximum.GetHashCode() ^ 190130741); }
public override int GetHashCode() => 19387 *Minimum.GetHashCode() ^ 24691 *Maximum.GetHashCode();
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()); }