diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-10 20:11:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-10 20:11:39 +0100 |
| commit | d46578f9c125e4700f0c8e1f4db3d896edb9cd92 (patch) | |
| tree | 63fe2045daadce4d5d769173edc79f6efc52853c /Mammoth/Couscous | |
| parent | c70ed0148f584d5fa23f1c553cd618bc3368dd3c (diff) | |
Add support for image converters
Diffstat (limited to 'Mammoth/Couscous')
| -rw-r--r-- | Mammoth/Couscous/Adapters.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mammoth/Couscous/Adapters.cs b/Mammoth/Couscous/Adapters.cs index 85fe77a..20d5f4f 100644 --- a/Mammoth/Couscous/Adapters.cs +++ b/Mammoth/Couscous/Adapters.cs @@ -76,6 +76,10 @@ namespace Mammoth.Couscous { } } + internal static Map<TKey, TValue> DictionaryToMap<TKey, TValue>(IDictionary<TKey, TValue> dictionary) { + return new HashMap<TKey, TValue>(new Dictionary<TKey, TValue>(dictionary)); + } + internal static Map<TKey, TValue> DictionaryToMap<TKey, TValue>(Dictionary<TKey, TValue> dictionary) { return new HashMap<TKey, TValue>(dictionary); } |
