I have a string like:
SELECT Sparte_id, Registernummer, Gesellschaft_ID, pk_id, Gesellschaft_Name, gesellschaft_crm,
Now I want to remove the last ,(comma) from the string. There are one, two, or three spaces after the last comma.
I am thinking of removing the last few letters. How could I do this?
Use string.TrimEnd: