int to string

int i = 123;
string s = i.ToString();
string s = (String)i;
string s = Convert.ToString(i);


string to int

string s = "123";
int a = Convert.ToInt16(s);
posted on 2006-04-28 16:56  mecn  阅读(500)  评论(0编辑  收藏  举报