Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Select class property from string variant?

$
0
0
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

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>