/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Blend != null) { hashCode = hashCode * 59 + Blend.GetHashCode(); } if (SizeMin != null) { hashCode = hashCode * 59 + SizeMin.GetHashCode(); } if (SizeMax != null) { hashCode = hashCode * 59 + SizeMax.GetHashCode(); } if (Border != null) { hashCode = hashCode * 59 + Border.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] Marker other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Color == other.Color || Color != null && Color.Equals(other.Color) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( Blend == other.Blend || Blend != null && Blend.Equals(other.Blend) ) && ( SizeMin == other.SizeMin || SizeMin != null && SizeMin.Equals(other.SizeMin) ) && ( SizeMax == other.SizeMax || SizeMax != null && SizeMax.Equals(other.SizeMax) ) && ( Border == other.Border || Border != null && Border.Equals(other.Border) )); }
/// <summary> /// Create a human-readable string of the object. /// </summary> /// <returns>String.</returns> public override string ToString() { string ret = ""; ret += "---" + Environment.NewLine; ret += " Prefix : " + (String.IsNullOrEmpty(Prefix) ? "null" : Prefix) + Environment.NewLine; ret += " Md5 : " + (String.IsNullOrEmpty(Md5) ? "null" : Md5) + Environment.NewLine; ret += " Content Type : " + (String.IsNullOrEmpty(ContentType) ? "null" : ContentType) + Environment.NewLine; ret += " Created" + Environment.NewLine; ret += " Before : " + (CreatedBefore == null ? "null" : CreatedBefore.Value.ToString()) + Environment.NewLine; ret += " After : " + (CreatedAfter == null ? "null" : CreatedAfter.Value.ToString()) + Environment.NewLine; ret += " Updated" + Environment.NewLine; ret += " Before : " + (UpdatedBefore == null ? "null" : UpdatedBefore.Value.ToString()) + Environment.NewLine; ret += " After : " + (UpdatedAfter == null ? "null" : UpdatedAfter.Value.ToString()) + Environment.NewLine; ret += " Last Access" + Environment.NewLine; ret += " Before : " + (LastAccessBefore == null ? "null" : LastAccessBefore.Value.ToString()) + Environment.NewLine; ret += " After : " + (LastAccessAfter == null ? "null" : LastAccessAfter.Value.ToString()) + Environment.NewLine; ret += " Size " + Environment.NewLine; ret += " Min : " + (SizeMin == null ? "null" : SizeMin.ToString()) + Environment.NewLine; ret += " After : " + (SizeMax == null ? "null" : SizeMax.ToString()) + Environment.NewLine; ret += " Tags : " + ((Tags == null || Tags.Count < 1) ? "null" : Tags.Count.ToString() + " tags") + Environment.NewLine; if (Tags != null && Tags.Count > 0) { foreach (string curr in Tags) { Console.WriteLine(" " + curr + Environment.NewLine); } } ret += " Key Values : " + ((KeyValuePairs == null || KeyValuePairs.Count < 1) ? "null" : KeyValuePairs.Count + " pairs") + Environment.NewLine; if (KeyValuePairs != null && KeyValuePairs.Count > 0) { foreach (KeyValuePair <string, string> curr in KeyValuePairs) { Console.WriteLine(" " + curr.Key + " = " + curr.Value + Environment.NewLine); } } return(ret); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Symbol != null) { hashCode = hashCode * 59 + Symbol.GetHashCode(); } if (SymbolArray != null) { hashCode = hashCode * 59 + SymbolArray.GetHashCode(); } if (Angle != null) { hashCode = hashCode * 59 + Angle.GetHashCode(); } if (AngleArray != null) { hashCode = hashCode * 59 + AngleArray.GetHashCode(); } if (AllowOverlap != null) { hashCode = hashCode * 59 + AllowOverlap.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (OpacityArray != null) { hashCode = hashCode * 59 + OpacityArray.GetHashCode(); } if (Size != null) { hashCode = hashCode * 59 + Size.GetHashCode(); } if (SizeArray != null) { hashCode = hashCode * 59 + SizeArray.GetHashCode(); } if (SizeRef != null) { hashCode = hashCode * 59 + SizeRef.GetHashCode(); } if (SizeMin != null) { hashCode = hashCode * 59 + SizeMin.GetHashCode(); } if (SizeMode != null) { hashCode = hashCode * 59 + SizeMode.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (ColorArray != null) { hashCode = hashCode * 59 + ColorArray.GetHashCode(); } if (CAuto != null) { hashCode = hashCode * 59 + CAuto.GetHashCode(); } if (CMin != null) { hashCode = hashCode * 59 + CMin.GetHashCode(); } if (CMax != null) { hashCode = hashCode * 59 + CMax.GetHashCode(); } if (CMid != null) { hashCode = hashCode * 59 + CMid.GetHashCode(); } if (ColorScale != null) { hashCode = hashCode * 59 + ColorScale.GetHashCode(); } if (AutoColorScale != null) { hashCode = hashCode * 59 + AutoColorScale.GetHashCode(); } if (ReverseScale != null) { hashCode = hashCode * 59 + ReverseScale.GetHashCode(); } if (ShowScale != null) { hashCode = hashCode * 59 + ShowScale.GetHashCode(); } if (ColorBar != null) { hashCode = hashCode * 59 + ColorBar.GetHashCode(); } if (ColorAxis != null) { hashCode = hashCode * 59 + ColorAxis.GetHashCode(); } if (SymbolSrc != null) { hashCode = hashCode * 59 + SymbolSrc.GetHashCode(); } if (AngleSrc != null) { hashCode = hashCode * 59 + AngleSrc.GetHashCode(); } if (OpacitySrc != null) { hashCode = hashCode * 59 + OpacitySrc.GetHashCode(); } if (SizeSrc != null) { hashCode = hashCode * 59 + SizeSrc.GetHashCode(); } if (ColorSrc != null) { hashCode = hashCode * 59 + ColorSrc.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] Marker other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Symbol == other.Symbol && Symbol != null && other.Symbol != null && Symbol.Equals(other.Symbol)) && (Equals(SymbolArray, other.SymbolArray) || SymbolArray != null && other.SymbolArray != null && SymbolArray.SequenceEqual(other.SymbolArray)) && (Angle == other.Angle && Angle != null && other.Angle != null && Angle.Equals(other.Angle)) && (Equals(AngleArray, other.AngleArray) || AngleArray != null && other.AngleArray != null && AngleArray.SequenceEqual(other.AngleArray)) && (AllowOverlap == other.AllowOverlap && AllowOverlap != null && other.AllowOverlap != null && AllowOverlap.Equals(other.AllowOverlap)) && (Opacity == other.Opacity && Opacity != null && other.Opacity != null && Opacity.Equals(other.Opacity)) && (Equals(OpacityArray, other.OpacityArray) || OpacityArray != null && other.OpacityArray != null && OpacityArray.SequenceEqual(other.OpacityArray)) && (Size == other.Size && Size != null && other.Size != null && Size.Equals(other.Size)) && (Equals(SizeArray, other.SizeArray) || SizeArray != null && other.SizeArray != null && SizeArray.SequenceEqual(other.SizeArray)) && (SizeRef == other.SizeRef && SizeRef != null && other.SizeRef != null && SizeRef.Equals(other.SizeRef)) && (SizeMin == other.SizeMin && SizeMin != null && other.SizeMin != null && SizeMin.Equals(other.SizeMin)) && (SizeMode == other.SizeMode && SizeMode != null && other.SizeMode != null && SizeMode.Equals(other.SizeMode)) && (Color == other.Color && Color != null && other.Color != null && Color.Equals(other.Color)) && (Equals(ColorArray, other.ColorArray) || ColorArray != null && other.ColorArray != null && ColorArray.SequenceEqual(other.ColorArray)) && (CAuto == other.CAuto && CAuto != null && other.CAuto != null && CAuto.Equals(other.CAuto)) && (CMin == other.CMin && CMin != null && other.CMin != null && CMin.Equals(other.CMin)) && (CMax == other.CMax && CMax != null && other.CMax != null && CMax.Equals(other.CMax)) && (CMid == other.CMid && CMid != null && other.CMid != null && CMid.Equals(other.CMid)) && (ColorScale == other.ColorScale && ColorScale != null && other.ColorScale != null && ColorScale.Equals(other.ColorScale)) && (AutoColorScale == other.AutoColorScale && AutoColorScale != null && other.AutoColorScale != null && AutoColorScale.Equals(other.AutoColorScale)) && (ReverseScale == other.ReverseScale && ReverseScale != null && other.ReverseScale != null && ReverseScale.Equals(other.ReverseScale)) && (ShowScale == other.ShowScale && ShowScale != null && other.ShowScale != null && ShowScale.Equals(other.ShowScale)) && (ColorBar == other.ColorBar && ColorBar != null && other.ColorBar != null && ColorBar.Equals(other.ColorBar)) && (ColorAxis == other.ColorAxis && ColorAxis != null && other.ColorAxis != null && ColorAxis.Equals(other.ColorAxis)) && (SymbolSrc == other.SymbolSrc && SymbolSrc != null && other.SymbolSrc != null && SymbolSrc.Equals(other.SymbolSrc)) && (AngleSrc == other.AngleSrc && AngleSrc != null && other.AngleSrc != null && AngleSrc.Equals(other.AngleSrc)) && (OpacitySrc == other.OpacitySrc && OpacitySrc != null && other.OpacitySrc != null && OpacitySrc.Equals(other.OpacitySrc)) && (SizeSrc == other.SizeSrc && SizeSrc != null && other.SizeSrc != null && SizeSrc.Equals(other.SizeSrc)) && (ColorSrc == other.ColorSrc && ColorSrc != null && other.ColorSrc != null && ColorSrc.Equals(other.ColorSrc))); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Symbol != null) { hashCode = hashCode * 59 + Symbol.GetHashCode(); } if (SymbolArray != null) { hashCode = hashCode * 59 + SymbolArray.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (OpacityArray != null) { hashCode = hashCode * 59 + OpacityArray.GetHashCode(); } if (Size != null) { hashCode = hashCode * 59 + Size.GetHashCode(); } if (SizeArray != null) { hashCode = hashCode * 59 + SizeArray.GetHashCode(); } if (MaxDisplayed != null) { hashCode = hashCode * 59 + MaxDisplayed.GetHashCode(); } if (SizeRef != null) { hashCode = hashCode * 59 + SizeRef.GetHashCode(); } if (SizeMin != null) { hashCode = hashCode * 59 + SizeMin.GetHashCode(); } if (SizeMode != null) { hashCode = hashCode * 59 + SizeMode.GetHashCode(); } if (Line != null) { hashCode = hashCode * 59 + Line.GetHashCode(); } if (Gradient != null) { hashCode = hashCode * 59 + Gradient.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (ColorArray != null) { hashCode = hashCode * 59 + ColorArray.GetHashCode(); } if (CAuto != null) { hashCode = hashCode * 59 + CAuto.GetHashCode(); } if (CMin != null) { hashCode = hashCode * 59 + CMin.GetHashCode(); } if (CMax != null) { hashCode = hashCode * 59 + CMax.GetHashCode(); } if (CMid != null) { hashCode = hashCode * 59 + CMid.GetHashCode(); } if (ColorScale != null) { hashCode = hashCode * 59 + ColorScale.GetHashCode(); } if (AutoColorScale != null) { hashCode = hashCode * 59 + AutoColorScale.GetHashCode(); } if (ReverseScale != null) { hashCode = hashCode * 59 + ReverseScale.GetHashCode(); } if (ShowScale != null) { hashCode = hashCode * 59 + ShowScale.GetHashCode(); } if (ColorBar != null) { hashCode = hashCode * 59 + ColorBar.GetHashCode(); } if (ColorAxis != null) { hashCode = hashCode * 59 + ColorAxis.GetHashCode(); } if (SymbolSrc != null) { hashCode = hashCode * 59 + SymbolSrc.GetHashCode(); } if (OpacitySrc != null) { hashCode = hashCode * 59 + OpacitySrc.GetHashCode(); } if (SizeSrc != null) { hashCode = hashCode * 59 + SizeSrc.GetHashCode(); } if (ColorSrc != null) { hashCode = hashCode * 59 + ColorSrc.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] Marker other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Symbol == other.Symbol || Symbol != null && Symbol.Equals(other.Symbol) ) && ( Equals(SymbolArray, other.SymbolArray) || SymbolArray != null && other.SymbolArray != null && SymbolArray.SequenceEqual(other.SymbolArray) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( Equals(OpacityArray, other.OpacityArray) || OpacityArray != null && other.OpacityArray != null && OpacityArray.SequenceEqual(other.OpacityArray) ) && ( Size == other.Size || Size != null && Size.Equals(other.Size) ) && ( Equals(SizeArray, other.SizeArray) || SizeArray != null && other.SizeArray != null && SizeArray.SequenceEqual(other.SizeArray) ) && ( MaxDisplayed == other.MaxDisplayed || MaxDisplayed != null && MaxDisplayed.Equals(other.MaxDisplayed) ) && ( SizeRef == other.SizeRef || SizeRef != null && SizeRef.Equals(other.SizeRef) ) && ( SizeMin == other.SizeMin || SizeMin != null && SizeMin.Equals(other.SizeMin) ) && ( SizeMode == other.SizeMode || SizeMode != null && SizeMode.Equals(other.SizeMode) ) && ( Line == other.Line || Line != null && Line.Equals(other.Line) ) && ( Gradient == other.Gradient || Gradient != null && Gradient.Equals(other.Gradient) ) && ( Color == other.Color || Color != null && Color.Equals(other.Color) ) && ( Equals(ColorArray, other.ColorArray) || ColorArray != null && other.ColorArray != null && ColorArray.SequenceEqual(other.ColorArray) ) && ( CAuto == other.CAuto || CAuto != null && CAuto.Equals(other.CAuto) ) && ( CMin == other.CMin || CMin != null && CMin.Equals(other.CMin) ) && ( CMax == other.CMax || CMax != null && CMax.Equals(other.CMax) ) && ( CMid == other.CMid || CMid != null && CMid.Equals(other.CMid) ) && ( ColorScale == other.ColorScale || ColorScale != null && ColorScale.Equals(other.ColorScale) ) && ( AutoColorScale == other.AutoColorScale || AutoColorScale != null && AutoColorScale.Equals(other.AutoColorScale) ) && ( ReverseScale == other.ReverseScale || ReverseScale != null && ReverseScale.Equals(other.ReverseScale) ) && ( ShowScale == other.ShowScale || ShowScale != null && ShowScale.Equals(other.ShowScale) ) && ( ColorBar == other.ColorBar || ColorBar != null && ColorBar.Equals(other.ColorBar) ) && ( ColorAxis == other.ColorAxis || ColorAxis != null && ColorAxis.Equals(other.ColorAxis) ) && ( SymbolSrc == other.SymbolSrc || SymbolSrc != null && SymbolSrc.Equals(other.SymbolSrc) ) && ( OpacitySrc == other.OpacitySrc || OpacitySrc != null && OpacitySrc.Equals(other.OpacitySrc) ) && ( SizeSrc == other.SizeSrc || SizeSrc != null && SizeSrc.Equals(other.SizeSrc) ) && ( ColorSrc == other.ColorSrc || ColorSrc != null && ColorSrc.Equals(other.ColorSrc) )); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Color is not null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (ColorArray is not null) { hashCode = hashCode * 59 + ColorArray.GetHashCode(); } if (CAuto is not null) { hashCode = hashCode * 59 + CAuto.GetHashCode(); } if (CMin is not null) { hashCode = hashCode * 59 + CMin.GetHashCode(); } if (CMax is not null) { hashCode = hashCode * 59 + CMax.GetHashCode(); } if (CMid is not null) { hashCode = hashCode * 59 + CMid.GetHashCode(); } if (ColorScale is not null) { hashCode = hashCode * 59 + ColorScale.GetHashCode(); } if (AutoColorScale is not null) { hashCode = hashCode * 59 + AutoColorScale.GetHashCode(); } if (ReverseScale is not null) { hashCode = hashCode * 59 + ReverseScale.GetHashCode(); } if (ShowScale is not null) { hashCode = hashCode * 59 + ShowScale.GetHashCode(); } if (ColorBar is not null) { hashCode = hashCode * 59 + ColorBar.GetHashCode(); } if (ColorAxis is not null) { hashCode = hashCode * 59 + ColorAxis.GetHashCode(); } if (Symbol is not null) { hashCode = hashCode * 59 + Symbol.GetHashCode(); } if (SymbolArray is not null) { hashCode = hashCode * 59 + SymbolArray.GetHashCode(); } if (Size is not null) { hashCode = hashCode * 59 + Size.GetHashCode(); } if (SizeArray is not null) { hashCode = hashCode * 59 + SizeArray.GetHashCode(); } if (SizeRef is not null) { hashCode = hashCode * 59 + SizeRef.GetHashCode(); } if (SizeMin is not null) { hashCode = hashCode * 59 + SizeMin.GetHashCode(); } if (SizeMode is not null) { hashCode = hashCode * 59 + SizeMode.GetHashCode(); } if (Opacity is not null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (OpacityArray is not null) { hashCode = hashCode * 59 + OpacityArray.GetHashCode(); } if (Line is not null) { hashCode = hashCode * 59 + Line.GetHashCode(); } if (ColorSrc is not null) { hashCode = hashCode * 59 + ColorSrc.GetHashCode(); } if (SymbolSrc is not null) { hashCode = hashCode * 59 + SymbolSrc.GetHashCode(); } if (SizeSrc is not null) { hashCode = hashCode * 59 + SizeSrc.GetHashCode(); } if (OpacitySrc is not null) { hashCode = hashCode * 59 + OpacitySrc.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] Marker other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Color == other.Color && Color is not null && other.Color is not null && Color.Equals(other.Color)) && (Equals(ColorArray, other.ColorArray) || ColorArray is not null && other.ColorArray is not null && ColorArray.SequenceEqual(other.ColorArray)) && (CAuto == other.CAuto && CAuto is not null && other.CAuto is not null && CAuto.Equals(other.CAuto)) && (CMin == other.CMin && CMin is not null && other.CMin is not null && CMin.Equals(other.CMin)) && (CMax == other.CMax && CMax is not null && other.CMax is not null && CMax.Equals(other.CMax)) && (CMid == other.CMid && CMid is not null && other.CMid is not null && CMid.Equals(other.CMid)) && (ColorScale == other.ColorScale && ColorScale is not null && other.ColorScale is not null && ColorScale.Equals(other.ColorScale)) && (AutoColorScale == other.AutoColorScale && AutoColorScale is not null && other.AutoColorScale is not null && AutoColorScale.Equals(other.AutoColorScale)) && (ReverseScale == other.ReverseScale && ReverseScale is not null && other.ReverseScale is not null && ReverseScale.Equals(other.ReverseScale)) && (ShowScale == other.ShowScale && ShowScale is not null && other.ShowScale is not null && ShowScale.Equals(other.ShowScale)) && (ColorBar == other.ColorBar && ColorBar is not null && other.ColorBar is not null && ColorBar.Equals(other.ColorBar)) && (ColorAxis == other.ColorAxis && ColorAxis is not null && other.ColorAxis is not null && ColorAxis.Equals(other.ColorAxis)) && (Symbol == other.Symbol && Symbol is not null && other.Symbol is not null && Symbol.Equals(other.Symbol)) && (Equals(SymbolArray, other.SymbolArray) || SymbolArray is not null && other.SymbolArray is not null && SymbolArray.SequenceEqual(other.SymbolArray)) && (Size == other.Size && Size is not null && other.Size is not null && Size.Equals(other.Size)) && (Equals(SizeArray, other.SizeArray) || SizeArray is not null && other.SizeArray is not null && SizeArray.SequenceEqual(other.SizeArray)) && (SizeRef == other.SizeRef && SizeRef is not null && other.SizeRef is not null && SizeRef.Equals(other.SizeRef)) && (SizeMin == other.SizeMin && SizeMin is not null && other.SizeMin is not null && SizeMin.Equals(other.SizeMin)) && (SizeMode == other.SizeMode && SizeMode is not null && other.SizeMode is not null && SizeMode.Equals(other.SizeMode)) && (Opacity == other.Opacity && Opacity is not null && other.Opacity is not null && Opacity.Equals(other.Opacity)) && (Equals(OpacityArray, other.OpacityArray) || OpacityArray is not null && other.OpacityArray is not null && OpacityArray.SequenceEqual(other.OpacityArray)) && (Line == other.Line && Line is not null && other.Line is not null && Line.Equals(other.Line)) && (ColorSrc == other.ColorSrc && ColorSrc is not null && other.ColorSrc is not null && ColorSrc.Equals(other.ColorSrc)) && (SymbolSrc == other.SymbolSrc && SymbolSrc is not null && other.SymbolSrc is not null && SymbolSrc.Equals(other.SymbolSrc)) && (SizeSrc == other.SizeSrc && SizeSrc is not null && other.SizeSrc is not null && SizeSrc.Equals(other.SizeSrc)) && (OpacitySrc == other.OpacitySrc && OpacitySrc is not null && other.OpacitySrc is not null && OpacitySrc.Equals(other.OpacitySrc))); }