Ejemplo n.º 1
0
        public static bool Remove <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key)
        {
            if (!c._raw.ContainsKey(key))
            {
                return(false);
            }

            c._raw.Remove(key);

            return(true);
        }
Ejemplo n.º 2
0
        public static bool TryGetValue <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key, out TValue value)
        {
            value = default(TValue);

            if (!c.ContainsKey(key))
            {
                return(false);
            }

            value = (TValue)c._raw[key];

            return(true);
        }
Ejemplo n.º 3
0
 public static IDictionaryEnumerator GetEnumerator <TKey, TValue>(this LiteSortedMap <TKey, TValue> c)
 {
     return(c._raw.GetEnumerator());
 }
Ejemplo n.º 4
0
 public static bool ContainsValue <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TValue value)
 {
     return(c._raw.ContainsValue(value));
 }
Ejemplo n.º 5
0
 public static bool ContainsKey <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key)
 {
     return(c._raw.ContainsKey(key));
 }
Ejemplo n.º 6
0
 public static void Clear <TKey, TValue>(this LiteSortedMap <TKey, TValue> c)
 {
     c._raw.Clear();
 }
Ejemplo n.º 7
0
 public static void Add <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key, TValue value)
 {
     c._raw.Add(key, value);
 }