Exemple #1
0
 public static void RemoveLast <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Remove(rDict.LastKey());
 }
Exemple #2
0
 private RuntimePerformance()
 {
     mRuntimeCounters = new Dict <string, Counter>();
 }
Exemple #3
0
 public static void Clear <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Clear();
 }
Exemple #4
0
 public static bool Remove <TKey, TValue>(this Dict <TKey, TValue> rDict, TKey key)
 {
     return(rDict.Collection.Remove((object)key));
 }
Exemple #5
0
 public static TValue FirstValue <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     return((TValue)rDict.Collection.Values.First());
 }
Exemple #6
0
 public static TKey FirstKey <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     return((TKey)rDict.Collection.Keys.First());
 }
Exemple #7
0
 public static bool ContainValue <TKey, TValue>(this Dict <TKey, TValue> rDict, TValue value)
 {
     return(rDict.Collection.ContainsValue((object)value));
 }
Exemple #8
0
 public static bool ContainsKey <TKey, TValue>(this Dict <TKey, TValue> rDict, TKey key)
 {
     return(rDict.Collection.ContainsKey((object)key));
 }
Exemple #9
0
 public IndexedDict()
 {
     mDictionary = new Dict <TKey, TValue>();
     mKeyList    = new List <TKey>();
 }