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; }
private void Evaluate(CultureInfo culture) { _evaluated = TypeConverter.TryTo(_name, typeof(bool), culture) ?? TypeConverter.TryTo(_name, typeof(decimal), culture); _constant = _evaluated != null; }