예제 #1
0
		/// <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();
		}
예제 #2
0
        /// <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());
        }
예제 #3
0
 /// <summary>
 /// Gets whether the current node equals the given node.
 /// </summary>
 public override bool Equals(object obj) => ProjectItemNode.Equals(this, obj as ProjectItemNode);
예제 #4
0
 /// <summary>
 /// Gets whether the current node equals the given node.
 /// </summary>
 public bool Equals(ProjectItemNode other) => ProjectItemNode.Equals(this, other);
예제 #5
0
		/// <summary>
		/// Gets whether the current node equals the given node.
		/// </summary>
		public bool Equals (ProjectItemNode other) => ProjectItemNode.Equals (this, other);