string->int int.TryParse(string, out int); int->string string = int.ToString(); 转载于:https://my.oschina.net/u/3297766/blog/1212725