private void EnsureOpen() { if (closed) { throw AlreadyClosedException.Create(this.GetType().FullName, "CFS Directory is already disposed."); } }
// LUCENENET specific - rather than using all of this exception catching nonsense // for control flow, we check whether we are disposed first. private void EnsureOpen() { if (buffers is null) { throw AlreadyClosedException.Create(this.GetType().FullName, "Already disposed: " + this); } }