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

21 lines
454 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-07-08 03:12:21 +00:00
{
Add(key, value);
2017-04-02 00:36:06 +00:00
}
public object Get(object key)
{
2017-07-08 03:12:21 +00:00
var m_key = Keys.SingleOrDefault(k => k.Equals(key));
return m_key != null ? this[m_key] : null;
2017-04-02 00:36:06 +00:00
}
}
}