00001 using System;
00002 using Collections = System.Collections;
00003
00004 namespace Tamir.SharpSsh.java.util
00005 {
00009 public class Hashtable
00010 {
00011 internal Collections.Hashtable h;
00012
00013 public Hashtable()
00014 {
00015 h= new Collections.Hashtable();
00016 }
00017 public Hashtable(Collections.Hashtable h)
00018 {
00019 this.h=h;
00020 }
00021
00022 public void put(object key, object item)
00023 {
00024 h.Add(key, item);
00025 }
00026
00027 public object get(object key)
00028 {
00029 return h[key];
00030 }
00031
00032 public Enumeration keys()
00033 {
00034 return new Enumeration( h.Keys.GetEnumerator() );
00035 }
00036
00037 public object this[object key]
00038 {
00039 get{return get(key);}
00040 set{h[key]=value;}
00041 }
00042 }
00043 }