Joutsen.ArgumentsParsing  v0.2.1
Public Member Functions | List of all members
Joutsen.ArgumentsParsing.ParseTarget Interface Reference

An interface that describes instances that can receive parsed values directly. More...

Public Member Functions

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

Detailed Description

An interface that describes instances that can receive parsed values directly.

Since
0.1.0

Member Function Documentation

◆ SetParsedValue()

void Joutsen.ArgumentsParsing.ParseTarget.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.

Implemented in Joutsen.ArgumentsParsing.DictionaryParseTarget.