diff options
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); } |
