从可写属性之中赋值
CLIMapper
01 Syntax
Microsoft.VisualBasic.CommandLine.CLIMapper
02 Methods
03 Members
Maps``1(CommandLine,
Boolean)Assign the argument value in the commandline into the target argument container object. The properties in the container class type needs decorating with attribute
(这个拓展函数是将命令行对象反序列化为参数对象) Argv
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
args | CommandLine | - |
strict | Boolean | - |
GetName(PropertyInfo)
If the property prop have the custom attribute Argv then the name value in Argv will be used, otherwise, MemberInfo.Name will be used.
Parameters
| Name | Type | Description |
|---|---|---|
prop | PropertyInfo | - |
Maps(CommandLine,
Boolean)