Esempio n. 1
0
 public static bool HasKey(string key)
 {
     //int hash = key.GetHashCode();
     if (Dic_Float.ContainsKey(key) ||
         Dic_Int.ContainsKey(key) ||
         Dic_Str.ContainsKey(key))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public static void SetInt(string key, int value)
 {
     //int hash = key.GetHashCode();
     if (Dic_Int.ContainsKey(key))
     {
         Dic_Int[key] = value;
     }
     else
     {
         Dic_Int.Add(key, value);
     }
 }
Esempio n. 3
0
 public static void DeleteKey(string key)
 {
     //int hash = key.GetHashCode();
     if (Dic_Float.ContainsKey(key))
     {
         Dic_Float.Remove(key);
     }
     if (Dic_Int.ContainsKey(key))
     {
         Dic_Int.Remove(key);
     }
     if (Dic_Str.ContainsKey(key))
     {
         Dic_Str.Remove(key);
     }
 }