M_CommandLine_HelpTextExtensions_Output - adutton/commandline GitHub Wiki
redirect errs to Console.Error, and to Console.Out for help/version error
Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static TextWriter Output(
this IEnumerable<Error> errs
)VB
<ExtensionAttribute>
Public Shared Function Output (
errs As IEnumerable(Of Error)
) As TextWriterC++
public:
[ExtensionAttribute]
static TextWriter^ Output(
IEnumerable<Error^>^ errs
)F#
[<ExtensionAttribute>]
static member Output :
errs : IEnumerable<Error> -> TextWriter
- errs
- Type: System.Collections.Generic.IEnumerable(Error)
Type: TextWriter
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(Error). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).