Beispiel #1
0
 public void Initialize()
 {
     this.mEvents = new Dict <int, Event>();
 }
Beispiel #2
0
 public static TValue FirstValue <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     return((TValue)rDict.Collection.Values.First());
 }
Beispiel #3
0
 private TypeResolveManager()
 {
     this.mAssemblies = new Dict <string, TypeResolveAssembly>();
 }
Beispiel #4
0
 public static bool ContainValue <TKey, TValue>(this Dict <TKey, TValue> rDict, TValue value)
 {
     return(rDict.Collection.ContainsValue((object)value));
 }
Beispiel #5
0
 public static TKey FirstKey <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     return((TKey)rDict.Collection.Keys.First());
 }
Beispiel #6
0
 public static bool ContainsKey <TKey, TValue>(this Dict <TKey, TValue> rDict, TKey key)
 {
     return(rDict.Collection.ContainsKey((object)key));
 }
Beispiel #7
0
 public static void RemoveFirst <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Remove(rDict.FirstKey());
 }
Beispiel #8
0
 public static bool Remove <TKey, TValue>(this Dict <TKey, TValue> rDict, TKey key)
 {
     return(rDict.Collection.Remove((object)key));
 }
Beispiel #9
0
 public static void Clear <TKey, TValue>(this Dict <TKey, TValue> rDict)
 {
     rDict.Collection.Clear();
 }
Beispiel #10
0
 public IndexedDict()
 {
     mDictionary = new Dict <TKey, TValue>();
     mKeyList    = new List <TKey>();
 }