Пример #1
0
        internal static void test()
        {
            System.Collections.Generic.IDictionary <string, string> map = new System.Collections.Generic.Dictionary
                                                                          <string, string>();
            if (map.ContainsKey("foo"))
            {
                object value = map.GetOrNull("foo");
            }
            foreach (object value in map.Values)
            {
            }
            foreach (object key in map.Keys)
            {
            }
            object removed = Sharpen.Collections.Remove(map, "foo");

            Sharpen.Collections.Put(map, "foo", "bar");
            string evicted = Sharpen.Collections.Put(map, "foo", "bar2");
        }