ãã¨ã®çºç«¯ã TextWriter writer=new SomeTextWriter("hogehoge"); tw.Write( Something() ); tw.Write( AnotherSomething() ); ãªãã¦ã³ã¼ãããã£ã¦ã ãããã°ã®ããã«ãWriteãããå 容ã表示ããããªã£ãã¨ããã(ã¨ãããããããã§ãã)ã string content= Something(); tw.Write(content); Console.Write(content); content= AnotherSomething(); tw.Write(content); ãªãã¦ããããã¯å¤§å¤æ®å¿µã対象ã®TextWriterãæ¸ããå 容ãè¦ãã¦ããã° TextWriter writer=new LoggedWriter(new SomeTextWriter("hogehoge"));
{{#tags}}- {{label}}
{{/tags}}