fork download
  1. using System;
  2. using System.Collections.Generic;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. Dictionary<int, double> dict = new Dictionary<int, double>();
  9.  
  10. for(int i = 0; i > 100; i++) {
  11. dict.Add(i, i* 20);
  12. }
  13.  
  14. Console.WriteLine(dict.Key);
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0.01s 131648KB
stdin
Standard input is empty
compilation info
prog.cs(14,26): error CS1061: Type `System.Collections.Generic.Dictionary<int,double>' does not contain a definition for `Key' and no extension method `Key' of type `System.Collections.Generic.Dictionary<int,double>' could be found. Are you missing an assembly reference?
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty