Answers for "c# - remove the last char from string"

C#
36

c# remove last character from string

string Name = "Teste,"
string ReturnName = "";
ReturnName = Name.Remove(Name.Length - 1);
Posted by: Guest on June-19-2020
3

how to remove last 3 characters from string in c#

myString = myString.Substring(0, myString.Length-3);
Posted by: Guest on October-02-2020

Code answers related to "c# - remove the last char from string"

C# Answers by Framework

Browse Popular Code Answers by Language