Hi there,
I want to create a class to read command line arguments and put them to MyArguments class with properties with vales set to these from command line.
So I have class MyArguments with property called MoveAfter as integer
Then in New() Sub of MyArguments i`m reading all command line args, and when find argument /MoveAfter:10, i want to set the value of property MoveAfter to 10.
The problem is, how to convert a string "MoveAfter" from command line arguments, so the class will know that property MoveAfter should be set?
Many thanks
I want to create a class to read command line arguments and put them to MyArguments class with properties with vales set to these from command line.
So I have class MyArguments with property called MoveAfter as integer
Then in New() Sub of MyArguments i`m reading all command line args, and when find argument /MoveAfter:10, i want to set the value of property MoveAfter to 10.
The problem is, how to convert a string "MoveAfter" from command line arguments, so the class will know that property MoveAfter should be set?
Many thanks