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(11,33): error CS0103: The name `Keys' does not exist in the current context
prog.cs(12,4): error CS0103: The name `Cosole' does not exist in the current context
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty