boxing reference type?

  • Thread starter Thread starter Sharon
  • Start date Start date
S

Sharon

when a reference type is stored in say hashtable.
is it converted to an object type and is it also considered boxing although
the object was not a value type?
10x.
 
Sharon said:
when a reference type is stored in say hashtable.
is it converted to an object type and is it also considered boxing although
the object was not a value type?

No. No boxing occurs at all.
 
Sharon said:
Just casting then?

Well, just using the implicit conversion from one reference type to
another, where the destination type is in the inheritence hierarchy of
the source type, as it were.
 
Back
Top