コード例 #1
0
        /// <inheritdoc/>
        public override bool Equals(AbstractNodeEntry other)
        {
            if (other is AbstractNodeTypeGroup otherGroup)
            {
                return(GroupName == otherGroup.GroupName && Types.SequenceEqual(otherGroup.Types));
            }

            return(false);
        }
コード例 #2
0
        /// <inheritdoc/>
        public override bool Equals(AbstractNodeEntry other)
        {
            var abstractNodeType = other as AbstractNodeType;

            if (abstractNodeType == null)
            {
                return(false);
            }

            return(Type == abstractNodeType.Type);
        }
コード例 #3
0
        /// <inheritdoc/>
        public override bool Equals(AbstractNodeEntry other)
        {
            var abstractNodeValue = other as AbstractNodeValue;

            if (abstractNodeValue == null)
            {
                return(false);
            }

            return(Equals(Value, abstractNodeValue.Value));
        }