public override bool Equals(object obj) { HierarchyIdentity identity = obj as HierarchyIdentity; if (identity == null) { return(false); } return(ComUtilities.IsSameComObject(this.Hierarchy, identity.Hierarchy)); }
public override bool Equals(object obj) { HierarchyItemPair pair = obj as HierarchyItemPair; if (pair == null) { return(false); } return(ComUtilities.IsSameComObject(this.Hierarchy, pair.Hierarchy) && (this.ItemID == pair.ItemID)); }
public override int GetHashCode() { int num; IntPtr pUnk = ComUtilities.QueryInterfaceIUnknown(this.Hierarchy); try { num = pUnk.ToInt32(); } finally { if (pUnk != IntPtr.Zero) { Marshal.Release(pUnk); } } return(num); }