Пример #1
0
        public NonUniqueDictionary <K, T> Copy()
        {
            NonUniqueDictionary <K, T> clone = new NonUniqueDictionary <K, T>();

            foreach (Tuple <K, T> tuple in this)
            {
                clone.Add(
                    ObjectExtensions.Copy(tuple.Item1),
                    ObjectExtensions.Copy(tuple.Item2));
            }
            return(clone);
        }
Пример #2
0
 public NonUniqueDictionary(NonUniqueDictionary <K, T> collection)
 {
     this.m_KeyValues = new List <Tuple <K, T> >(collection.m_KeyValues);
 }