using System.Collections.Generic;
public static void Main()
var list = new List<int>();
Console.WriteLine("Hello World");
private static void AddElements(List<int> list)
var objList = (List<object>) tmp;
objList.Add("CLR's type checker won't allow the original integer list to be converted to List<object> at runtime, this line will never execute");
private static int Sum(List<int> list)
foreach (var val in list)