ToString() Formatting Trick

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hey Folks,

I have searched "hours" for where this tricky option is documented. I
can NOT find it! So, I am asking assistance on two issues >>

1) What are the formatting switches available for the ToString()
method.

2) If someone searches for the above and finds it ... Please teach me
your search method! Or which Reference manual you recommend.

Here's my observation >>
 
Tom,

Well, the Length property on the FileInfo class returns a long. Looking
at the ToString method documentation on the long type (Int64), it shows this
overload:

Int64.ToString (String)

Which leads to the following documentation page:

http://msdn2.microsoft.com/en-US/library/1fd69cbc.aspx

For which there is a plethora of information about the formatting
options.

Generally speaking though, you should look at the documentation for the
ToString method for the type that you are calling it on, as it is almost
always overloaded, and the documentation for the overload will indicate what
formatting strings are used and how.
 
** Thank You Nicholas !! **

Your explanation was PERFECT !!!!!

A lot of fog just lifted and I am now looking at a lot of the dot
separated verbiage with MUCH better understanding.

Thanks again. It takes a special type of intelligence to recognize
another's confusion and open their eyes.

-- Tom

===================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top