Ejemplo n.º 1
0
        /// <see cref="JsonPlusValue.Equals(IJsonPlusNode)"/>
        public bool Equals(IJsonPlusNode other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (other is JsonPlusSubstitution sub)
            {
                return((Path == sub.Path) && (GetMemberPath() == sub.GetMemberPath()));
            }

            return(!(_resolvedValue is null) && _resolvedValue.Equals(other));
        }