Joutsen.ArgumentsParsing v0.3.0+1-ga4c84ed
Public Member Functions | Properties | List of all members
Joutsen.ArgumentsParsing.ParseTargetPropertyAttribute Class Reference

An attribute which marks a property as the target of a parsed value. More...

Public Member Functions

 ParseTargetPropertyAttribute (string name)
 Creates a new instance which marks a property as a target for a parsed value with the destination name. More...
 

Properties

string Name [get]
 The name of the argument that the property is the target of. More...
 

Detailed Description

An attribute which marks a property as the target of a parsed value.

Remarks
The attribute should be used if the property should be marked as a target explicitly or if the property name and the name of the parser argument's destination differ. Properties which are marked by this attribute can still be the target of a parsed value if the property name matches the argument's destination.
Since
0.1.0

Constructor & Destructor Documentation

◆ ParseTargetPropertyAttribute()

Joutsen.ArgumentsParsing.ParseTargetPropertyAttribute.ParseTargetPropertyAttribute ( string  name)

Creates a new instance which marks a property as a target for a parsed value with the destination name.

Property Documentation

◆ Name

string Joutsen.ArgumentsParsing.ParseTargetPropertyAttribute.Name
get

The name of the argument that the property is the target of.

This can be different than the actual property name.