예제 #1
0
파일: TextWriter.cs 프로젝트: Spaxys/Kean
        public async Tasks.Task <bool> Close()
        {
            bool result;

            if (result = this.backend.NotNull() && await this.Flush() && await this.backend.Close())
            {
                this.backend = null;
            }
            return(result);
        }
예제 #2
0
파일: TextWriter.cs 프로젝트: Spaxys/Kean
 protected TextWriter(ICharacterOutDevice backend)
 {
     this.backend = backend;
 }
예제 #3
0
파일: TextWriter.cs 프로젝트: Spaxys/Kean
 public static ITextWriter Open(ICharacterOutDevice backend)
 {
     return(backend.NotNull() ? new TextWriter(backend) : null);
 }