Skip to content

M_CommandLine_ErrorExtensions_ToParserResult__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

ErrorExtensions.ToParserResult(T) Method

Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static ParserResult<T> ToParserResult<T>(
	this IEnumerable<Error> errors,
	T instance
)

VB

<ExtensionAttribute>
Public Shared Function ToParserResult(Of T) ( 
	errors As IEnumerable(Of Error),
	instance As T
) As ParserResult(Of T)

C++

public:
[ExtensionAttribute]
generic<typename T>
static ParserResult<T>^ ToParserResult(
	IEnumerable<Error^>^ errors, 
	T instance
)

F#

[<ExtensionAttribute>]
static member ToParserResult : 
        errors : IEnumerable<Error> * 
        instance : 'T -> ParserResult<'T> 

Parameters

 

errors
Type: System.Collections.Generic.IEnumerable(Error)
instance
Type: T

Type Parameters

 

T

Return Value

Type: ParserResult(T)

Usage Note

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).

See Also

Reference

ErrorExtensions Class
CommandLine Namespace

Clone this wiki locally