I have a string. Something like this:
myapp.exe email --to myemail@mail.com --subject "EmailSubject" --body "Test message".
How to parse every param value?
I have a string. Something like this:
myapp.exe email --to myemail@mail.com --subject "EmailSubject" --body "Test message".
How to parse every param value?
You can either go the manual way and build your dictionary of key-values: https://msdn.microsoft.com/en-us/library/aa288457(v=vs.71).aspx
Or use a third party Nuget package, such as this one: https://www.nuget.org/packages/commandlineparser, which will add support for more advanced and higher level scenarios