Пример #1
0
 public bool TryGetValue(ulong key, out TV value)
 {
     if (partitioned)
     {
         int partIdx = (int)(key >> keyBaseShift);
         return(pmers[partIdx].TryGetValue(key, out value));
     }
     else
     {
         return(mers.TryGetValue(key, out value));
     }
 }
Пример #2
0
 public bool TryGetValue(ulong key, out TV value)
 {
     if (partitioned)
     {
         int partition = (int)(key >> (64 - (keySize * 2)));
         return(dictionaryPartitions[partition].TryGetValue(key, out value));
     }
     else
     {
         return(dictionary.TryGetValue(key, out value));
     }
 }