c# remove last character from string

C#
string Name = "Teste,"
string ReturnName = "";
ReturnName = Name.Remove(Name.Length - 1);
Source

Also in C#: