/// <inheritdoc /> public bool Equals([AllowNull] MapBox other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Domain == other.Domain || Domain != null && Domain.Equals(other.Domain) ) && ( AccessToken == other.AccessToken || AccessToken != null && AccessToken.Equals(other.AccessToken) ) && ( Style == other.Style || Style != null && Style.Equals(other.Style) ) && ( Center == other.Center || Center != null && Center.Equals(other.Center) ) && ( Zoom == other.Zoom || Zoom != null && Zoom.Equals(other.Zoom) ) && ( Bearing == other.Bearing || Bearing != null && Bearing.Equals(other.Bearing) ) && ( Pitch == other.Pitch || Pitch != null && Pitch.Equals(other.Pitch) ) && ( Equals(Layers, other.Layers) || Layers != null && other.Layers != null && Layers.SequenceEqual(other.Layers) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) )); }
/// <summary> /// Returns true if Event instances are equal /// </summary> /// <param name="other">Instance of Event to be compared</param> /// <returns>Boolean</returns> public bool Equals(Event other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( City == other.City || City != null && City.Equals(other.City) ) && ( Lat == other.Lat || Lat != null && Lat.Equals(other.Lat) ) && ( Lon == other.Lon || Lon != null && Lon.Equals(other.Lon) ) && ( Zoom == other.Zoom || Zoom != null && Zoom.Equals(other.Zoom) ) && ( Start == other.Start || Start != null && Start.Equals(other.Start) ) && ( End == other.End || End != null && End.Equals(other.End) )); }