Пример #1
0
        public override bool Equals(object other)
        {
            YamlSequenceNode node = other as YamlSequenceNode;

            if ((node == null) || (!base.Equals(node) || (this.children.Count != node.children.Count)))
            {
                return(false);
            }
            for (int i = 0; i < this.children.Count; i++)
            {
                if (!SafeEquals(this.children[i], node.children[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            YamlSequenceNode yamlSequenceNode = obj as YamlSequenceNode;

            if (yamlSequenceNode == null || !Equals(yamlSequenceNode) || children.Count != yamlSequenceNode.children.Count)
            {
                return(false);
            }
            for (int i = 0; i < children.Count; i++)
            {
                if (!YamlNode.SafeEquals(children[i], yamlSequenceNode.children[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Пример #3
0
 void IYamlVisitor.Visit(YamlSequenceNode sequence)
 {
     Visit(sequence);
     Visited(sequence);
 }
Пример #4
0
 /// <summary>
 /// Called after this object finishes visiting a <see cref="YamlSequenceNode"/>.
 /// </summary>
 /// <param name="sequence">
 /// The <see cref="YamlSequenceNode"/> that has been visited.
 /// </param>
 protected virtual void Visited(YamlSequenceNode sequence)
 {
     // Do nothing.
 }
Пример #5
0
 /// <summary>
 /// Called when this object is visiting a <see cref="YamlSequenceNode"/>.
 /// </summary>
 /// <param name="sequence">
 /// The <see cref="YamlSequenceNode"/> that is being visited.
 /// </param>
 protected virtual void Visit(YamlSequenceNode sequence)
 {
     VisitChildren(sequence);
 }
		public virtual void Visit(YamlSequenceNode sequence)
		{
			VisitChildren(sequence);
		}
Пример #7
0
 protected override void Visit(YamlSequenceNode sequence)
 {
     VisitNode(sequence);
 }
Пример #8
0
 protected virtual void Visited(YamlSequenceNode sequence)
 {
 }
Пример #9
0
 void IYamlVisitor.Visit(YamlSequenceNode sequence)
 {
     this.Visit(sequence);
     this.Visited(sequence);
 }
Пример #10
0
 public override void Visit(YamlSequenceNode sequence)
 {
     VisitNode(sequence);
     base.Visit(sequence);
 }