/// <summary> /// Returns the hash code of this object /// </summary> public override sealed int GetHashCode() { unchecked { if (ParentFullName == null) { return(NodeName.GetHashCode() + IsSuite.GetHashCode()); } return(NodeName.GetHashCode() + ParentFullName.GetHashCode() + IsSuite.GetHashCode()); } }
/// <summary> /// Implements <see cref="IEquatable{T}.Equals(T)" /> /// </summary> public bool Equals(INode other) { return(NodeName.Equals(other.NodeName) && IsSuite.Equals(other.IsSuite) && ParentFullName.Equals(other.ParentFullName)); }