/// <summary>
        /// Returns true if AccountManagerColumn instances are equal
        /// </summary>
        /// <param name="other">Instance of AccountManagerColumn to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AccountManagerColumn other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Tooltip == other.Tooltip ||
                     Tooltip != null &&
                     Tooltip.Equals(other.Tooltip)
                 ) &&
                 (
                     FixedWidth == other.FixedWidth ||
                     FixedWidth != null &&
                     FixedWidth.Equals(other.FixedWidth)
                 ) &&
                 (
                     Sortable == other.Sortable ||
                     Sortable != null &&
                     Sortable.Equals(other.Sortable)
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if TimescaleMark instances are equal
        /// </summary>
        /// <param name="other">Instance of TimescaleMark to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(TimescaleMark other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Time == other.Time ||
                     Time != null &&
                     Time.Equals(other.Time)
                 ) &&
                 (
                     Color == other.Color ||
                     Color != null &&
                     Color.Equals(other.Color)
                 ) &&
                 (
                     Tooltip == other.Tooltip ||
                     Tooltip != null &&
                     Tooltip.Equals(other.Tooltip)
                 ) &&
                 (
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                 ));
        }