Skip to content

M_CommandLine_Core_OptionMapper_MapValues

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

OptionMapper.MapValues Method

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

Syntax

C#

public static Result<IEnumerable<SpecificationProperty>, Error> MapValues(
	IEnumerable<SpecificationProperty> propertyTuples,
	IEnumerable<KeyValuePair<string, IEnumerable<string>>> options,
	Func<IEnumerable<string>, Type, bool, Maybe<Object>> converter,
	StringComparer comparer
)

VB

Public Shared Function MapValues ( 
	propertyTuples As IEnumerable(Of SpecificationProperty),
	options As IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of String))),
	converter As Func(Of IEnumerable(Of String), Type, Boolean, Maybe(Of Object)),
	comparer As StringComparer
) As Result(Of IEnumerable(Of SpecificationProperty), Error)

C++

public:
static Result<IEnumerable<SpecificationProperty^>^, Error^>^ MapValues(
	IEnumerable<SpecificationProperty^>^ propertyTuples, 
	IEnumerable<KeyValuePair<String^, IEnumerable<String^>^>>^ options, 
	Func<IEnumerable<String^>^, Type^, bool, Maybe<Object^>^>^ converter, 
	StringComparer^ comparer
)

F#

static member MapValues : 
        propertyTuples : IEnumerable<SpecificationProperty> * 
        options : IEnumerable<KeyValuePair<string, IEnumerable<string>>> * 
        converter : Func<IEnumerable<string>, Type, bool, Maybe<Object>> * 
        comparer : StringComparer -> Result<IEnumerable<SpecificationProperty>, Error> 

Parameters

 

propertyTuples
Type: System.Collections.Generic.IEnumerable(SpecificationProperty)
options
Type: System.Collections.Generic.IEnumerable(KeyValuePair(String, IEnumerable(String)))
converter
Type: System.Func(IEnumerable(String), Type, Boolean, Maybe(Object))
comparer
Type: System.StringComparer

Return Value

Type: Result(IEnumerable(SpecificationProperty), Error)

See Also

Reference

OptionMapper Class
CommandLine.Core Namespace

Clone this wiki locally