Box and UnBox what does it means? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Why do we need boxing and unboxing in C#? What is boxing and unboxing and what are the trade offs? In C# what doe sit means: "Box and UnBox"? Here an extract from MSDN where I founded the Text. But this convenience comes at a cost. Any reference or value type that is added to an ArrayList is implicitly upcast to Object. If the items are value types, they must be boxed when they are added to the list, and