Skip to content

M_CommandLine_Core_KeyValuePairHelper_ToKeyValuePair

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

KeyValuePairHelper.ToKeyValuePair Method

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

Syntax

C#

private static KeyValuePair<string, IEnumerable<string>> ToKeyValuePair(
	this string value,
	params string[] values
)

VB

<ExtensionAttribute>
Private Shared Function ToKeyValuePair ( 
	value As String,
	ParamArray values As String()
) As KeyValuePair(Of String, IEnumerable(Of String))

C++

private:
[ExtensionAttribute]
static KeyValuePair<String^, IEnumerable<String^>^> ToKeyValuePair(
	String^ value, 
	... array<String^>^ values
)

F#

[<ExtensionAttribute>]
private static member ToKeyValuePair : 
        value : string * 
        values : string[] -> KeyValuePair<string, IEnumerable<string>> 

Parameters

 

value
Type: System.String
values
Type: System.String[]

Return Value

Type: KeyValuePair(String, IEnumerable(String))

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. 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

KeyValuePairHelper Class
CommandLine.Core Namespace

Clone this wiki locally