public bool Close() { bool result; if (result = this.backend.NotNull() && this.backend.Close()) this.backend = null; return result; }
public async Tasks.Task <bool> Close() { bool result; if (result = this.backend.NotNull() && await this.backend.Close()) { this.backend = null; } return(result); }
protected TextReader(ICharacterInDevice backend) { this.backend = backend; this.Position = Tasks.Task.FromResult(new Text.Position(0, 0)); }
public static ITextReader Open(ICharacterInDevice backend) { return(backend.NotNull() ? new TextReader(backend) : null); }
public static ICharacterInDevice Open(ICharacterInDevice backend) { return backend.NotNull() ? new CharacterInDevice(backend) : null; }
protected CharacterInDevice(ICharacterInDevice backend) { this.backend = backend; }
public static ICharacterInDevice Open(ICharacterInDevice backend, Func<Func<char?>, char[]> filter) { return backend.NotNull() ? new CharacterInDevice(backend) { Filter = filter } : null; }
protected CharacterReader(ICharacterInDevice backend) { this.backend = backend; this.Row = 1; }