/// <summary> /// Determines whether the specified <see cref="Cronofy.EventTime"/> is /// equal to the current <see cref="Cronofy.EventTime"/>. /// </summary> /// <param name="other"> /// The <see cref="Cronofy.EventTime"/> to compare with the current /// <see cref="Cronofy.EventTime"/>. /// </param> /// <returns> /// <c>true</c> if the specified <see cref="Cronofy.EventTime"/> is /// equal to the current <see cref="Cronofy.EventTime"/>; otherwise, /// <c>false</c>. /// </returns> public bool Equals(EventTime other) { return(other != null && this.dateTimeOffset == other.dateTimeOffset && this.Date == other.Date && this.TimeZoneId == other.TimeZoneId); }
/// <summary> /// Determines whether the specified <see cref="Cronofy.EventTime"/> is /// equal to the current <see cref="Cronofy.EventTime"/>. /// </summary> /// <param name="other"> /// The <see cref="Cronofy.EventTime"/> to compare with the current /// <see cref="Cronofy.EventTime"/>. /// </param> /// <returns> /// <c>true</c> if the specified <see cref="Cronofy.EventTime"/> is /// equal to the current <see cref="Cronofy.EventTime"/>; otherwise, /// <c>false</c>. /// </returns> public bool Equals(EventTime other) { return other != null && this.dateTimeOffset == other.dateTimeOffset && this.Date == other.Date && this.TimeZoneId == other.TimeZoneId; }