/// <summary>
 /// Whether it can be evaluated as numeric
 /// </summary>
 internal override bool CanNumericEvaluate(IConditionEvaluationState state)
 {
     // It is not always possible to numerically evaluate even a numerical expression -
     // for example, it may overflow a double. So check here.
     return(ConversionUtilities.ValidDecimalOrHexNumber(_value));
 }
Exemple #2
0
 internal override bool CanNumericEvaluate(IConditionEvaluationState state)
 {
     return(ConversionUtilities.ValidDecimalOrHexNumber(GetExpandedValue(state)));
 }
 /// <summary>
 /// Evaluate as numeric
 /// </summary>
 internal override double NumericEvaluate(IConditionEvaluationState state)
 {
     return(ConversionUtilities.ConvertDecimalOrHexToDouble(_value));
 }
Exemple #4
0
 internal override bool CanBoolEvaluate(IConditionEvaluationState state)
 {
     return(ConversionUtilities.CanConvertStringToBool(GetExpandedValue(state)));
 }