Friday, July 31, 2009

Is there a syntex on C# to convert from "int" to "string"?

in C# the compiler does an automatic conversion from "int" to string"......I just want to know is there a syntex to do it as the opposite syntex "int.parse(string)"

Is there a syntex on C# to convert from "int" to "string"?
you call Convert.ToInt16 or Convert.ToInt32.





http://msdn2.microsoft.com/en-us/library...
Reply:Look at the properties for the int type.





int foo;


string bar;


bar = foo.ToString();


No comments:

Post a Comment