I'm having trouble with a C# assignment dealing with boxing/unboxing. Here are the directions:
- Create an empty List of type object
- Add the following values to the list: 7, 28, -1, true, "chair"
- Loop through the list and print all values (Hint: Type Inference might help here!)
- Add all values that are Int type together and output the sum
The trouble I am having is declaring a list that doesn't specify the data type so I can add multiple values of different data types to the list in the object (see Step 2). Any advice?