Exemple #1
0
 private void Evaluate(CultureInfo culture)
 {
     _evaluated = TypeConverter.TryTo(_value, typeof(bool), culture) ??
                  TypeConverter.TryTo(_value, typeof(decimal), culture) ??
                  TryParseDateTime(_value, culture) ??
                  TryParseDate(_value, culture) ??
                  _value;
 }
Exemple #2
0
 private void Evaluate(CultureInfo culture)
 {
     _evaluated = TypeConverter.TryTo(_name, typeof(bool), culture) ??
                  TypeConverter.TryTo(_name, typeof(decimal), culture);
     _constant = _evaluated != null;
 }