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); }