Note that the stack-allocated System.Int32 is boxed prior to the call to ArrayList.Add() in
order to pass in the required System.Object. Also note that the System.Object is unboxed back into a
System.Int32 once retrieved from the ArrayList using the type indexer (which maps to the hidden
get_Item() method), only to be boxed again when it is passed to the Console.WriteLine() method,
as this method is operating on System.Object types.
Do'stlaringiz bilan baham: