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

            return
                ((
                     Aspect == other.Aspect ||
                     Aspect != null &&
                     Aspect.Equals(other.Aspect)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Subtitle == other.Subtitle ||
                     Subtitle != null &&
                     Subtitle.Equals(other.Subtitle)
                 ) &&
                 (
                     Text == other.Text ||
                     Text != null &&
                     Text.Equals(other.Text)
                 ) &&
                 (
                     Image == other.Image ||
                     Image != null &&
                     Image.Equals(other.Image)
                 ) &&
                 (
                     Media == other.Media ||
                     Media != null &&
                     Media.SequenceEqual(other.Media)
                 ) &&
                 (
                     Buttons == other.Buttons ||
                     Buttons != null &&
                     Buttons.SequenceEqual(other.Buttons)
                 ) &&
                 (
                     Shareable == other.Shareable ||
                     Shareable != null &&
                     Shareable.Equals(other.Shareable)
                 ) &&
                 (
                     Autoloop == other.Autoloop ||
                     Autoloop != null &&
                     Autoloop.Equals(other.Autoloop)
                 ) &&
                 (
                     Autostart == other.Autostart ||
                     Autostart != null &&
                     Autostart.Equals(other.Autostart)
                 ));
        }