C#字符串加1 如"100002013058”,加1后变成"100002013059"
如"100002013058”,加1后变成"100002013059"
string one = "100001311"; IEnumerable<char> c = from i in one.AsEnumerable() select i; List<char> b = c.ToList(); b[one.Length-1] = Convert.ToChar( Convert .ToInt32( b[one.Length-1])+1); string o = new string(b.ToArray());