You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
515 B
24 lines
515 B
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace SharpCifs.Util.Sharpen
|
|
{
|
|
public class Hashtable : Dictionary<object, object>
|
|
{
|
|
public void Put(object key, object value)
|
|
{
|
|
if (this.ContainsKey(key))
|
|
this[key] = value;
|
|
else
|
|
this.Add(key, value);
|
|
}
|
|
|
|
public object Get(object key)
|
|
{
|
|
return this.ContainsKey(key)
|
|
? this[key]
|
|
: null;
|
|
}
|
|
}
|
|
}
|