System.Yaml.YamlNode.EqualsSub C# (CSharp) Méthode

EqualsSub() private méthode

Returns true if b is of same type as the YamlNode and its Tag is same as the node. It returns true for skip if they both already appeared in the node trees and were compared.
private EqualsSub ( YamlNode b, ObjectRepository repository, bool &skip ) : bool
b YamlNode Node to be compared.
repository ObjectRepository Node repository holds the nodes that already appeared and /// the corresponding node in the other node tree.
skip bool true if they already appeared in the node tree and were compared.
Résultat bool
        internal bool EqualsSub(YamlNode b, ObjectRepository repository, out bool skip)
        {
            YamlNode a = this;
            bool identity;
            if ( repository.AlreadyAppeared(a, b, out identity) ) {
                skip = true;
                return identity;
            }
            skip = false;
            if ( a.GetType() != b.GetType() || a.Tag != b.Tag )
                return false;
            return true;
        }