RadExpressionParser
An expression parser that parses a string into an lambda expression.
Definition
Namespace:Telerik.Expressions
Assembly:Telerik.Windows.Data.dll
Syntax:
public class RadExpressionParser : IDisposable
Inheritance: objectRadExpressionParser
Implements:
Constructors
Initializes a new instance of the RadExpressionParser class.
public RadExpressionParser()
Properties
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Converts the string representation of an expression to its LambdaExpression equivalent.
public LambdaExpression Parse(string expression)
The string expression to be parsed.
Returns: Exceptions:ExpressionParserException.
Run a parse operation and returns the resulting lambda expression.
public Task<LambdaExpression> ParseAsync(string expression, CancellationToken cancellationToken)
The string expression to be parsed.
cancellationTokenCancellationTokenThe cancellation token that will be assigned to the new task.
Returns: Exceptions:ExpressionParserException.
Run a parse operation and returns the resulting lambda expression.
public Task<LambdaExpression> ParseAsync(string expression)
The string expression to be parsed.
Returns: Exceptions:ExpressionParserException.
Converts the string representation of an expression to its LambdaExpression equivalent. A return value indicates whether the conversion succeeded or failed.
public bool TryParse(string expression, out LambdaExpression lambda)
A string containing an expression to convert.
lambdaLambdaExpressionWhen this method returns, contains the LambdaExpression equivalent of the s parameter, if the conversion succeeded, or null if the conversion failed. The conversion fails when the supplied expression contains invalid operators or operands;any value originally supplied in result will be overwritten.
Returns:true if expression was converted successfully; otherwise, false.