Esempio n. 1
0
		public bool Close()
		{
			bool result;
			if (result = this.backend.NotNull() && this.backend.Close())
				this.backend = null;
			return result;
		}
Esempio n. 2
0
        public async Tasks.Task <bool> Close()
        {
            bool result;

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