A
Armin Zingler
"One Handed Man [ OHM# ]"
This is not completely right. You wrote:
"DirectCast can only be used on reference types"
A boxed integer is accessed using a reference to the heap, but an Integer
value is still not a reference type.
Enable option strict.
You didn't bother me!
OK, So now we have established that. I then put it to you that my
original statement is correct, which is that directCast only works
with reference types, because when they are Boxed, they become
referenced.
This is not completely right. You wrote:
"DirectCast can only be used on reference types"
A boxed integer is accessed using a reference to the heap, but an Integer
value is still not a reference type.
Your assertion was that Boxed types also work, this is
true.
BTW the assignment
Works during compile and runtime. The casting is done implicitly it
seems.
Enable option strict.
Thank you for your patience. I wont bother you further on this one as
we have done it to death.
You didn't bother me!