Hello,
we're using your RadExpression editor in our application. We create the expressions using the editor and then we save them. At a
later stage we parse them using the editor again, but we would like to use the parsing functionality without a dependence on WPF.
Is there anyway to do that with any of your products?
Ned Stoyanov
we're using your RadExpression editor in our application. We create the expressions using the editor and then we save them. At a
later stage we parse them using the editor again, but we would like to use the parsing functionality without a dependence on WPF.
Is there anyway to do that with any of your products?
public static List<T> Filter<T>(IList<T> items, string filter) where T : new() { var result = new List<T>(); try { var editor = new RadExpressionEditor(); editor.Item = new T(); Expression exprResult; var isSuccess = editor.TryParse(filter, out exprResult); if (isSuccess) { var expr1 = (Expression<Func<T, bool>>)exprResult; var func = expr1.Compile(); result = items.Where(func).ToList(); } } catch (Exception) { } return result; }regards,
Ned Stoyanov