jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs

24 lines
515 B
C#
Raw Normal View History

2017-04-02 00:36:06 +00:00
using System.Collections.Generic;
using System.Linq;
namespace SharpCifs.Util.Sharpen
{
public class Hashtable : Dictionary<object, object>
{
public void Put(object key, object value)
2017-06-21 06:46:57 +00:00
{
if (this.ContainsKey(key))
this[key] = value;
else
this.Add(key, value);
2017-04-02 00:36:06 +00:00
}
public object Get(object key)
{
2017-06-21 06:46:57 +00:00
return this.ContainsKey(key)
? this[key]
: null;
2017-04-02 00:36:06 +00:00
}
}
}