fork download
  1. using System;
  2. using System.Collections;
  3. class Example{
  4. public static void Main(string[] args){
  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. Console.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
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty