T
Tom Spink
Hi Fergus,
The reason I said it looked suspicious is that my trained eye ;-) spots
things that could be potential errors. IMO, it would be better to use CType
in this case because you maybe unsure of type conversion. Of course, there's
absolutely nothing wrong with DirectCast, I use it all the type, where I
can. But IMO it just scares me slightly to see it being used when types
could be potentially different.
That's all, I probably haven't said "Your code is fantastic" yet, so here we
go:
Oh by the way, your code is fantastic!!
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflection Master "
==== Converting to 2002 ====
Remove inline declarations
The reason I said it looked suspicious is that my trained eye ;-) spots
things that could be potential errors. IMO, it would be better to use CType
in this case because you maybe unsure of type conversion. Of course, there's
absolutely nothing wrong with DirectCast, I use it all the type, where I
can. But IMO it just scares me slightly to see it being used when types
could be potentially different.
That's all, I probably haven't said "Your code is fantastic" yet, so here we
go:
Oh by the way, your code is fantastic!!
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflection Master "
==== Converting to 2002 ====
Remove inline declarations