Exemple #1
0
		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;
		}
Exemple #2
0
		CharacterDevice(IByteDevice backend, System.Text.Encoding encoding)
		{
			this.backend = backend;
			this.decoder = new Decoder(this.backend, encoding);
			this.encoding = encoding;
		}