Exemple #1
0
 protected override bool GetLevelForField(Field key, out byte value)
 {
     //Кэшируем хэш код
     key.GetHashCode();
     _lockFieldLevels.EnterReadLock();
     try
     {
         return(FieldLevels.TryGetValue(key, out value));
     }
     finally
     {
         _lockFieldLevels.ExitReadLock();
     }
 }
Exemple #2
0
 protected override bool GetLevelForField(Field field, out byte existsStepNumber)
 {
     return(FieldLevels.TryGetValue(field, out existsStepNumber));
 }