Beispiel #1
0
        public IDictionary <TKey, ICollection <TValue> > ToDictionary()
        {
            var result = new Dictionary <TKey, ICollection <TValue> >(dictionary.Count);

            result.PutAll(dictionary);
            return(ComparableDictionary <TKey, ICollection <TValue> > .Of(result));
        }
Beispiel #2
0
        public IDictionary <TKey, ICollection <TValue> > ToDictionary()
        {
            var result = new Dictionary <TKey, ICollection <TValue> >(dictionary.Count);

            foreach (var entry in dictionary)
            {
                result.Put(entry.Key, MutableCopy(entry.Value));
            }
            return(ComparableDictionary <TKey, ICollection <TValue> > .Of(result));
        }