ToString() gives the textual respresentation of the object. This means with numbers that, for example, number 3 gets displayd as string "3".
ToString() also accepts format string as a parameter and this gives the full power of it. For example -123.ToString("X") returns hexadecimal representation of the number (=FFFFFF85).
You can read more about string formsts from the
MSDN documentation.
Since it's overridable method you can have your own implementation of it in your own class.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008