SparkleShare/SharpSSH/java/util/Hashtable.cs
2010-07-15 20:41:37 +01:00

44 lines
715 B
C#

using System;
using Collections = System.Collections;
namespace Tamir.SharpSsh.java.util
{
/// <summary>
/// Summary description for Hashtable.
/// </summary>
public class Hashtable
{
internal Collections.Hashtable h;
public Hashtable()
{
h= new Collections.Hashtable();
}
public Hashtable(Collections.Hashtable h)
{
this.h=h;
}
public void put(object key, object item)
{
h.Add(key, item);
}
public object get(object key)
{
return h[key];
}
public Enumeration keys()
{
return new Enumeration( h.Keys.GetEnumerator() );
}
public object this[object key]
{
get{return get(key);}
set{h[key]=value;}
}
}
}