public virtual bool Close() { bool result; if (result = this.backend.NotNull() && (this.Wrapped || this.backend.Close() && this.decoder.Close())) { this.backend = null; this.decoder = null; } return result; }
CharacterDevice(IByteDevice backend, System.Text.Encoding encoding) { this.backend = backend; this.decoder = new Decoder(this.backend, encoding); this.encoding = encoding; }