I use WinForms c#.I have string value like below,
string Something = "1,5,12,34,";
I need to remove last comma in a string. So How can i delete it ?
Try string.TrimEnd():
string.TrimEnd()
Something = Something.TrimEnd(',');
2.1m questions
2.1m answers
60 comments
57.0k users