/// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked             // Overflow is fine, just wrap
            {
                int hashCode = 41;
                // Suitable nullity checks etc, of course :)

                hashCode = hashCode * 59 + OriginalDuration.GetHashCode();
                if (Context != null)
                {
                    hashCode = hashCode * 59 + Context.GetHashCode();
                }
                return(hashCode);
            }
        }
        /// <summary>
        ///     Returns true if TimeElapsedEvent instances are equal
        /// </summary>
        /// <param name="other">Instance of TimeElapsedEvent to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(TimeElapsedEvent other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OriginalDuration == other.OriginalDuration ||
                     OriginalDuration.Equals(other.OriginalDuration)
                     ) &&
                 (
                     Context == other.Context ||
                     Context != null &&
                     Context.Equals(other.Context)
                 ));
        }