hello,
how can i covert say 12 to a charater string "12"?
boy, i miss vb :(
regan
Printable View
hello,
how can i covert say 12 to a charater string "12"?
boy, i miss vb :(
regan
never fear, c# is your friend
MOST OBJECTS IN C# HAVE .ToString();PHP Code:private void Form1_Load(object sender, System.EventArgs e)
{
int mynumber =123456;
mynumber.ToString();
}
Most objects in the .NET framework have .ToString
There is no difference between objects in any language under .NET.
cheers
Simon
Well, you could also use System.Convert class to provide additional conversions. And I think (string)12 or 12.ToString() would also run, won't it?
or more accurately
All objects in the .NET framework have ToString.
ToString is a method of System.Object and all objects are finally derived from System.Object.
I stand corrected .. you are indeed right.
Cheers
Simon
Even Strings have the ToString() method :confused: :eek:
spooky :eek:
Simon