/// <inheritdoc /> public override int GetHashCode() { var code = Separator.GetHashCode(); foreach (var segment in Segments) { code |= segment.GetHashCode(); } return(code); }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ ItemFrom?.GetHashCode() ?? 0; result = (result * 397) ^ Separator?.GetHashCode() ?? 0; result = (result * 397) ^ Arguments.GetSequencedHashCode(); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = Key != null?Key.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Separator != null ? Separator.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0); return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { var code = Separator.GetHashCode(); foreach (var segment in Segments) { unchecked { code = code * 31 + segment.GetHashCode(); } } return(code); }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ Name?.GetHashCode() ?? 0; result = (result * 397) ^ Value?.GetHashCode() ?? 0; result = (result * 397) ^ Insert?.GetHashCode() ?? 0; result = (result * 397) ^ Mode.GetHashCode(); result = (result * 397) ^ Separator?.GetHashCode() ?? 0; result = (result * 397) ^ Default?.GetHashCode() ?? 0; return(result); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); if (ItemFrom != null) { result = (result * 397) ^ ItemFrom.GetHashCode(); } if (Separator != null) { result = (result * 397) ^ Separator.GetHashCode(); } result = (result * 397) ^ Arguments.GetSequencedHashCode(); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsRequired.GetHashCode(); hashCode = (hashCode * 397) ^ Size.GetHashCode(); hashCode = (hashCode * 397) ^ ShowTime.GetHashCode(); hashCode = (hashCode * 397) ^ IsHtml.GetHashCode(); hashCode = (hashCode * 397) ^ IsIpAddress.GetHashCode(); hashCode = (hashCode * 397) ^ (ImageSource != null ? ImageSource.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Separator != null ? Separator.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (References != null ? References.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsReference.GetHashCode(); hashCode = (hashCode * 397) ^ (Alias != null ? Alias.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Format != null ? Format.GetHashCode() : 0); 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 (Input != null) { hashCode = hashCode * 59 + Input.GetHashCode(); } if (Separator != null) { hashCode = hashCode * 59 + Separator.GetHashCode(); } hashCode = hashCode * 59 + Lower.GetHashCode(); hashCode = hashCode * 59 + Trim.GetHashCode(); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (WidgetId != null) { hashCode = hashCode * 59 + WidgetId.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Visibility != null) { hashCode = hashCode * 59 + Visibility.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Icon != null) { hashCode = hashCode * 59 + Icon.GetHashCode(); } if (Labelcolor != null) { hashCode = hashCode * 59 + Labelcolor.GetHashCode(); } if (Valuecolor != null) { hashCode = hashCode * 59 + Valuecolor.GetHashCode(); } if (Mappings != null) { hashCode = hashCode * 59 + Mappings.GetHashCode(); } if (SwitchSupport != null) { hashCode = hashCode * 59 + SwitchSupport.GetHashCode(); } if (SendFrequency != null) { hashCode = hashCode * 59 + SendFrequency.GetHashCode(); } if (Separator != null) { hashCode = hashCode * 59 + Separator.GetHashCode(); } if (Refresh != null) { hashCode = hashCode * 59 + Refresh.GetHashCode(); } if (Height != null) { hashCode = hashCode * 59 + Height.GetHashCode(); } if (MinValue != null) { hashCode = hashCode * 59 + MinValue.GetHashCode(); } if (MaxValue != null) { hashCode = hashCode * 59 + MaxValue.GetHashCode(); } if (Step != null) { hashCode = hashCode * 59 + Step.GetHashCode(); } if (Url != null) { hashCode = hashCode * 59 + Url.GetHashCode(); } if (Encoding != null) { hashCode = hashCode * 59 + Encoding.GetHashCode(); } if (Service != null) { hashCode = hashCode * 59 + Service.GetHashCode(); } if (Period != null) { hashCode = hashCode * 59 + Period.GetHashCode(); } if (Legend != null) { hashCode = hashCode * 59 + Legend.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (Item != null) { hashCode = hashCode * 59 + Item.GetHashCode(); } if (LinkedPage != null) { hashCode = hashCode * 59 + LinkedPage.GetHashCode(); } if (Widgets != null) { hashCode = hashCode * 59 + Widgets.GetHashCode(); } return(hashCode); } }