diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 20:36:06 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 20:36:06 -0400 |
| commit | 733b891f529c2458d65560f556edf68052be2846 (patch) | |
| tree | 4c6de5d23e73f8fea02513a6936bdb01a39e7b62 /Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs | |
| parent | d4d6314c5ac4515ad8ddf7c8636245ed2d93d4c8 (diff) | |
stub out cifs support
Diffstat (limited to 'Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs')
| -rw-r--r-- | Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs b/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs new file mode 100644 index 0000000000..c2c53485dc --- /dev/null +++ b/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/Hashtable.cs @@ -0,0 +1,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; + } + } +} |
