C# remove last char of string code example
Example 1: js remove last character from string
let str = "Hello Worlds";
str = str.slice(0, -1);
Example 2: c# remove last character from string
string Name = "Teste,"
string ReturnName = "";
ReturnName = Name.Remove(Name.Length - 1);
Example 3: remove last character from string c#
myString = myString.Substring(0, myString.Length-1);