Esempio n. 1
0
        public override bool Equals(object?other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!(other is Fb2Node otherNode))
            {
                return(false);
            }

            if (ReferenceEquals(this, otherNode))
            {
                return(true);
            }

            var result = Name == otherNode.Name &&
                         AllowedAttributes.SequenceEqual(otherNode.AllowedAttributes) &&
                         AreAttributesEqual(otherNode.attributes) &&
                         IsInline == otherNode.IsInline &&
                         IsUnsafe == otherNode.IsUnsafe;

            return(result);
        }