📌  相关文章
📜  c# 从字符串中删除最后一个字符 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.940000             🧑  作者: Mango

代码示例6
//remove last character from string
string Name = "Teste,"
string ReturnName = "";
ReturnName = Name.Remove(Name.Length - 1);

//how to remove last 3 characters from string
myString = myString.Substring(0, myString.Length-3);