public override bool Equals(object obj) { Key k = obj as Key; return(k != null && _name.Equals(k._name) && _parent.Equals(k._parent)); }
public bool Equals(Key other) => other != null && _name.Equals(other._name) && _parent.Equals(other._parent);