public IShellItem GetParent() { var pidlCopy = new PIDL(PIDL); if (!pidlCopy.RemoveLastId()) { Marshal.ThrowExceptionForHR((int)new HRESULT(HRESULT.MK_E_NOOBJECT)); } return(new ShellItemImpl(pidlCopy, true)); }
internal ShellItemImpl InternalGetParent() { var pidlCopy = new PIDL(PIDL); return(pidlCopy.RemoveLastId() ? new ShellItemImpl(pidlCopy, true) : this); }