Todd,
I've read the opposite that the C* methods are more efficient/faster then
the Convert.To* methods.
http://www.panopticoncentral.net/arc...6/07/1200.aspx
Hope this helps
Jay
"Todd Plambeck" <tp***@nospamflash.net> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
| Thanks guys! CType it is. I have read that Convert.To... is more
| efficient/faster then the C* methods. I know, I know the fractions of
| milliseconds won't make much difference, but you gotta get it anywhere you
| can.
|
| Thanks again.
|
| Todd
|
| "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
| news:%2******************@TK2MSFTNGP09.phx.gbl...
| > "Todd Plambeck" <tp***@nospamflash.net> schrieb:
| >> Is there a more C# like alternative to CType? I don't like using the
| >> VB6esque "C" conversion methods(CStr, CInt, etc) . I'd prefer to user
| >> something like Convert.ToInt32(), but can't find a equivalent for
| >> converting objects.
| >
| > If you are looking for cast operators, 'DirectCast' and 'CType' are the
| > way to go. There is absolutely no reason for not using the 'C*'
| > conversions/casts.
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|