Joutsen.ArgumentsParsing  v0.2.1
Public Member Functions | List of all members
Joutsen.ArgumentsParsing.DictionaryParseTarget Class Reference

An default implementation for ParseTargets that acts like a dictionary to store and retrieve the parced values. More...

Public Member Functions

void SetParsedValue (string name, object value)
 Passes a pased value to this instance. More...
 

Detailed Description

An default implementation for ParseTargets that acts like a dictionary to store and retrieve the parced values.

Since
0.1.0

Member Function Documentation

◆ SetParsedValue()

void Joutsen.ArgumentsParsing.DictionaryParseTarget.SetParsedValue ( string  name,
object  value 
)

Passes a pased value to this instance.

Parameters
namethe name of the argument that was parsed
valuethe parsed value
Remarks
This is a generic interface and therefore the value is passed to the target in a generic way. It is the responsibility of the implementing class to cast the value to the right type.

Implements Joutsen.ArgumentsParsing.ParseTarget.