|
-
January 7th, 2011, 07:22 AM
#6
Re: [RESOLVED] Generic Types
Well said BigEd781; forgive me for using a reference type as an example of boxing and unboxing!
A better example would have been:
List<Int32> list = new List<Int32>();
list.Add(myInt32);
Int is a value type;
- converting a value type to a reference type is boxing
- converting a reference type to a value type is unboxing
Sorry for any confusion caused on my part!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|