示例#1
0
 /// <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());
     }
 }
示例#2
0
 /// <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));
 }