aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs
blob: c2c53485dcd561463af5d13beeffa68bd125d55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections.Generic;
using System.Linq;

namespace SharpCifs.Util.Sharpen
{
    public class Hashtable : Dictionary<object, object>
    {
        public void Put(object key, object value)
        {            
            Add(key, value);
        }

        public object Get(object key)
        {
            var m_key = Keys.SingleOrDefault(k => k.Equals(key));

            return m_key != null ? this[m_key] : null;
        }
    }
}