Re: [RESOLVED] Generic Types
Just thought I would add that boxing is only a performance concern in the case of value types. In the case of a reference type (i.e., a class) you get strong typing as bassguru noted.
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!