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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top