/// <summary> /// Gets whether the given nodes are equal. /// </summary> public static bool Equals(ProjectItemNode obj1, ProjectItemNode obj2) { if (Object.Equals(null, obj1) || Object.Equals(null, obj2) || obj1.GetType() != obj2.GetType() || Object.Equals(null, obj1.OwningProject) || Object.Equals(null, obj2.OwningProject)) return false; if (Object.ReferenceEquals(obj1, obj2)) return true; return obj1.HierarchyNode.GetActualHierarchy() == obj2.HierarchyNode.GetActualHierarchy() && obj1.HierarchyNode.GetActualItemId() == obj2.HierarchyNode.GetActualItemId(); }
/// <summary> /// Gets whether the given nodes are equal. /// </summary> public static bool Equals(ProjectItemNode obj1, ProjectItemNode obj2) { if (Object.Equals(null, obj1) || Object.Equals(null, obj2) || obj1.GetType() != obj2.GetType() || Object.Equals(null, obj1.OwningProject) || Object.Equals(null, obj2.OwningProject)) { return(false); } if (Object.ReferenceEquals(obj1, obj2)) { return(true); } return(obj1.HierarchyNode.GetActualHierarchy() == obj2.HierarchyNode.GetActualHierarchy() && obj1.HierarchyNode.GetActualItemId() == obj2.HierarchyNode.GetActualItemId()); }
/// <summary> /// Gets whether the current node equals the given node. /// </summary> public override bool Equals(object obj) => ProjectItemNode.Equals(this, obj as ProjectItemNode);
/// <summary> /// Gets whether the current node equals the given node. /// </summary> public bool Equals(ProjectItemNode other) => ProjectItemNode.Equals(this, other);
/// <summary> /// Gets whether the current node equals the given node. /// </summary> public bool Equals (ProjectItemNode other) => ProjectItemNode.Equals (this, other);