+92 332 4229 857 99ProjectIdeas@Gmail.com

Integer To String Conversion (C#.net)




The following code shows you convert from integer data type to string data type and vice versa.





 

Integer To String Conversion:
 
int no = 23456;
string str = no.ToString();
MessageBox.Show(str);


String To Integer Conversion: 

string str = "2345";
int no = int.Parse(str);
Console.Write(no);


0 comments: