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); }
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); }
public static IDictionaryEnumerator GetEnumerator <TKey, TValue>(this LiteSortedMap <TKey, TValue> c) { return(c._raw.GetEnumerator()); }
public static bool ContainsValue <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TValue value) { return(c._raw.ContainsValue(value)); }
public static bool ContainsKey <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key) { return(c._raw.ContainsKey(key)); }
public static void Clear <TKey, TValue>(this LiteSortedMap <TKey, TValue> c) { c._raw.Clear(); }
public static void Add <TKey, TValue>(this LiteSortedMap <TKey, TValue> c, TKey key, TValue value) { c._raw.Add(key, value); }