Exemple #1
0
        /// <summary>
        /// Returns true if DesignerBlockBean instances are equal
        /// </summary>
        /// <param name="input">Instance of DesignerBlockBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DesignerBlockBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Type == input.Type ||
                     (Type != null &&
                      Type.Equals(input.Type))
                     ) &&
                 (
                     Inline == input.Inline ||
                     (Inline != null &&
                      Inline.Equals(input.Inline))
                 ) &&
                 (
                     Moveable == input.Moveable ||
                     (Moveable != null &&
                      Moveable.Equals(input.Moveable))
                 ) &&
                 (
                     Disabled == input.Disabled ||
                     (Disabled != null &&
                      Disabled.Equals(input.Disabled))
                 ) &&
                 (
                     Deletable == input.Deletable ||
                     (Deletable != null &&
                      Deletable.Equals(input.Deletable))
                 ) &&
                 (
                     Editable == input.Editable ||
                     (Editable != null &&
                      Editable.Equals(input.Editable))
                 ) &&
                 (
                     Comment == input.Comment ||
                     (Comment != null &&
                      Comment.Equals(input.Comment))
                 ) &&
                 (
                     Mutation == input.Mutation ||
                     Mutation != null &&
                     Mutation.SequenceEqual(input.Mutation)
                 ) &&
                 (
                     Children == input.Children ||
                     Children != null &&
                     Children.SequenceEqual(input.Children)
                 ) &&
                 (
                     Fields == input.Fields ||
                     Fields != null &&
                     Fields.SequenceEqual(input.Fields)
                 ) &&
                 (
                     Next == input.Next ||
                     (Next != null &&
                      Next.Equals(input.Next))
                 ));
        }