I need to remove two characters from the end of the string.
So:
string = "Hello Marco !"
must be
Hello Marco
How can I do it?
You can do:
string str = "Hello Marco !"; str = str.Substring(0, str.Length - 2);
2.1m questions
2.1m answers
60 comments
57.0k users