C# newbie here. I am trying to set a C# variable as follows.
string profileArg = @"/profile ""eScore"" ";
The end result is that I want the variable to contain the value
/profile "eScore"
There should be a space in the string after the "eScore"
How do I do it?
Seth
You have a space after eScore in your string.
// a space after "eScore"
string profileArg = @"/profile ""eScore"" ";
// no space after "eScore"
string profileArg = @"/profile ""eScore""";
// space in "eScore "
string profileArg = @"/profile ""eScore """;
// No space using escaping
string profileArg = "/profile \"eScore\"";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With