Пример #1
0
        // Function to clone the dictionary.
        public static void CloneDic(MyDictionary <int, AbstrState> myDictionary)
        {
            MyDictionary <int, AbstrState> shallowClone = myDictionary.Clone();

            Console.WriteLine("Shadow clone of the dictionary:");
            ShowDic(shallowClone);
        }