[C#] C#删除最后一个结尾的逗号 →→→→→进入此内容的聊天室

来自 , 2019-08-25, 写在 C#, 查看 99 次.
URL http://www.code666.cn/view/4b0a0290
  1. /// <summary>
  2.         /// 删除最后结尾的一个逗号
  3.         /// </summary>
  4.         public static string DelLastComma(string str)
  5.         {
  6.             return str.Substring(0, str.LastIndexOf(","));
  7.         }

回复 "C#删除最后一个结尾的逗号"

这儿你可以回复上面这条便签

captcha