Example #1
0
 public static bool TryGetByString(this HashStorage hashStorage, string str, out int id)
 {
     return(hashStorage.TryGetByHash(HashCode(str), out id));
 }
Example #2
0
 public static void ReplaceById(this HashStorage hashStorage, string str, int id)
 {
     hashStorage.ReplaceById(id, HashCode(str));
 }
Example #3
0
 public static bool ContainsString(this HashStorage hashStorage, string str)
 {
     return(hashStorage.ContainsHash(HashCode(str)));
 }
Example #4
0
 public static void Add(this HashStorage hashStorage, string str, int id)
 {
     hashStorage.Add(HashCode(str), id);
 }