Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
string aaa = "Привет, что делаешь, как дела";
int pos = aaa.LastIndexOf(',');
string bbb = aaa.Substring(pos);
aaa = aaa.Substring(0, pos);
string aaa = "Привет, что делаешь";
string bbb = aaa.Split(',').Last();
remove the part of the string that comes after the last character
aaa = aaa.Substring(0, aaa.LastIndexOf(',') + 1);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question