SafeEquals() protected static method

Gets a value indicating whether two objects are equal.
protected static SafeEquals ( object first, object second ) : bool
first object
second object
return bool
Example #1
0
        public override bool Equals(object obj)
        {
            YamlScalarNode yamlScalarNode = obj as YamlScalarNode;

            return(yamlScalarNode != null && Equals(yamlScalarNode) && YamlNode.SafeEquals(Value, yamlScalarNode.Value));
        }
        public override bool Equals(object obj)
        {
            YamlAliasNode yamlAliasNode = obj as YamlAliasNode;

            return(yamlAliasNode != null && Equals(yamlAliasNode) && YamlNode.SafeEquals(base.Anchor, yamlAliasNode.Anchor));
        }