C#中string类型与int类型的转换

string->int   


int.TryParse(string, out int);

int = string - ‘0’;



int->string

string = int.ToString();

你可能感兴趣的:(C#)