public ExpressionDescriptor(string expression, Options options)
		{
			m_expression = expression;
			m_options = options;
			m_expressionParts = new string[6];
			m_parsed = false;
		}
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
			string retVal = string.Empty;

            if (value != null)
            {
				var options = new Options();
				options.DayOfWeekStartIndexZero = false;
				var ed = new ExpressionDescriptor(value.ToString(), options);
				retVal = ed.GetDescription(DescriptionTypeEnum.FULL);//.GetDescription(value.ToString());
            }

			return retVal;
        }
		public static string GetDescription(string expression, Options options)
		{
			ExpressionDescriptor descripter = new ExpressionDescriptor(expression, options);
			return descripter.GetDescription(DescriptionTypeEnum.FULL);
		}
Ejemplo n.º 4
0
		public ExpressionParser(string expression, Options options)
		{
			m_expression = expression;
			m_options = options;
		}