convert int to string

  • Thread starter Thread starter djozy
  • Start date Start date
D

djozy

Please,I am begginer,can you tell me which function
converts integer to string in C# and can you give me
correct syntax of it?
Thank you
..
 
djozy said:
Please,I am begginer,can you tell me which function
converts integer to string in C# and can you give me
correct syntax of it?
Thank you
.

int X = 5;
MessageBox.Show(X.ToString());

everything has a ToString function in dot net so you can convert anything to a string, although it doesn't always give you something
meaningful.
 
Michael,thank you very much for this quick answer.I hope
that you will have nothing against if I contact you in the
future for simple questions like this.
Best regards from Croatia
 
Back
Top