CliWriter.GetCached Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Gets a cached CliWriter instance for a TextWriter instance. This way ANSI capabilities will be detected only once (which may be an expensive operation) for Out, for example. The cache entry will be removed when the TextWriter instance becomes unreachable.
public static CliWriter GetCached(TextWriter output)
Parameters
outputTextWriter