public DirectoryEntry GetDirectoryEntry() { if (_disposed) { throw new ObjectDisposedException(GetType().Name); } if (!existing) { throw new InvalidOperationException(SR.CannotGetObject); } else { return(DirectoryEntryManager.GetDirectoryEntryInternal(context, cachedEntry.Path)); } }
public DirectoryEntry GetDirectoryEntry() { if (!this.disposed) { if (this.existing) { return(DirectoryEntryManager.GetDirectoryEntryInternal(this.context, this.cachedEntry.Path)); } else { throw new InvalidOperationException(Res.GetString("CannotGetObject")); } } else { throw new ObjectDisposedException(this.GetType().Name); } }