Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27156

VS 2010 chars method undocumented?

$
0
0
Working with the following code:
Code:

dim v as object = "123"
dim c as char = v.ToString...

Intellisense shows two overloads for ToString. The first is unsurprising. The second one is:

"Chars(index as Integer) as Char"

However, when I tried to find the documentation for this method, I failed. Does anyone know where it is documented? Also, why is it listed in the overloads for ToString when it actually has a different name? FWIW it seems that I can code the second line above two different ways:

Code:

dim c as char = v.Chars(0)
or

Code:

dim c as char = v.ToString(0)
But I cannot find documentation for the ToString method that discusses its optional parameter or mentions that it returns a Char, not a String.

Where can I look for more information about these methods?

Viewing all articles
Browse latest Browse all 27156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>