I use WinForms C#. I have a string value like below:
string Something = "1,5,12,34,";
I need to remove the last comma in this string. So how can I delete it?
Try string.TrimEnd():
string.TrimEnd()
Something = Something.TrimEnd(',');