Example #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.OwningProject.Equals(obj2.OwningProject) &&
                   obj1.HierarchyNode.ItemId.Equals(obj2.HierarchyNode.ItemId));
        }
		/// <summary>
		/// Gets whether the current node equals the given node.
		/// </summary>
		public bool Equals(ProjectItemNode other)
		{
			return ProjectItemNode.Equals(this, other);
		}
		/// <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.OwningProject.Equals(obj2.OwningProject) &&
				obj1.HierarchyNode.ItemId.Equals(obj2.HierarchyNode.ItemId);
		}
Example #4
0
 /// <summary>
 /// Gets whether the current node equals the given node.
 /// </summary>
 public override bool Equals(object obj)
 {
     return(ProjectItemNode.Equals(this, obj as ProjectItemNode));
 }
Example #5
0
 /// <summary>
 /// Gets whether the current node equals the given node.
 /// </summary>
 public bool Equals(ProjectItemNode other)
 {
     return(ProjectItemNode.Equals(this, other));
 }