Exemple #1
0
            /// <summary>
            /// Considered equal when the path, builder and parser are equal.
            /// Note: value is ignored in equality test.
            /// </summary>
            public bool Equals(IPartView other)
            {
                if (other == null || !(other is IPartViewNode))
                {
                    return(false);
                }

                var node = (IPartViewNode)other;

                return(SelectedPath.Equals(node.SelectedPath) &&
                       SelectedBuilder.Equals(node.SelectedBuilder) &&
                       dbqf.Parsers.Parser.Equals(Parser, node.Parser));
            }
Exemple #2
0
        /// <summary>
        /// AdvancedPart considered equal when the path, builder and parser are equal.
        /// Note: value is ignored in equality test.
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(IPartView other)
        {
            if (other == null || !(other is IPartViewNode))
            {
                return(false);
            }

            var node = (IPartViewNode)other;

            return(SelectedPath.Equals(node.SelectedPath) &&
                   SelectedBuilder.Equals(node.SelectedBuilder) &&
                   Parser.Equals(Parser, node.Parser) &&
                   (Values != null ? Values.Equals(node.Values) : true));
        }