fork download
  1. using System;
  2. using System.Collections.Generic;
  3. public class Test
  4. {
  5.  
  6. public static void Main()
  7. {
  8. List<object> objList = new List<object>();
  9.  
  10. int one = 1;
  11. int two = 2;
  12.  
  13. objList.Add(one);
  14. objList.Add(two);
  15.  
  16. one += 10;
  17. two += 10;
  18.  
  19. int result = 0;
  20. result += (int)objList[0] + (int)objList[1] + one + two;
  21.  
  22. Console.WriteLine(result);
  23. }
  24. }
Success #stdin #stdout 0.05s 23960KB
stdin
Standard input is empty
stdout
26