fork download
  1. using System;
  2. using System.Collections;
  3. class Example{
  4. public static void Main(){
  5. Hashtable ht=new Hashtable();
  6. ht.Add("naidu",200);
  7. ht.Add("ram",800);
  8. ht.Add("hello",500);
  9. ht.Add("hiii",6000);
  10. foreach(object key in ht.keys){
  11. Console.WriteLine(key+" "+ht[keys]);
  12. Cosole.WriteLine("hello".GetHashCode());
  13. }
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,28): error CS1061: Type `System.Collections.Hashtable' does not contain a definition for `keys' and no extension method `keys' of type `System.Collections.Hashtable' 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