C#中 TrimEnd()用法①去除最后的逗号string str=ab,cd,ef,;str=str.TrimEnd(new char[] { ',' });返回结果则是:ab,cd,ef②去掉日期格式的00:00:00char [] strRemove={'0',':'}; lblBirthday.Text = myReader ["Birthday"].ToString().TrimEnd(strRemove);此处双引号和单引号有区别,双引号是字符串,应该会报string不能转换到char的错