Exemplo n.º 1
0
      private static bool Equals(ProjectItemNode lhs, ProjectItemNode rhs)
      {
         if (object.ReferenceEquals(lhs, rhs))
            return true;

         if (object.ReferenceEquals(lhs, null) || object.ReferenceEquals(rhs, null) || Object.ReferenceEquals(lhs.ParentProject, null) || Object.ReferenceEquals(rhs.ParentProject, null))
            return false;

         if (lhs.GetType().Equals(rhs.GetType()) == false)
            return false;

         return lhs.ParentProject.Equals(rhs.ParentProject) && lhs.HierarchyNode.ItemId.Equals(rhs.HierarchyNode.ItemId);
      }
Exemplo n.º 2
0
 public bool Equals(ProjectItemNode other)
 {
    return Equals(this, other);
 }