Class RadExpressionParser
An expression parser that parses a string into an lambda expression.
Inheritance
Inherited Members
Namespace: Telerik.Expressions
Assembly: Telerik.Windows.Data.dll
Syntax
public class RadExpressionParser : IDisposable
Constructors
RadExpressionParser()
Initializes a new instance of the RadExpressionParser class.
Declaration
public RadExpressionParser()
Properties
Item
The parameter to be used if the expression contains such e.g. "() => parameter.ExampleProperty + 11".
Declaration
public object Item { get; set; }
Property Value
System.Object
|
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Parse(String)
Converts the string representation of an expression to its System.Linq.Expressions.LambdaExpression equivalent.
Declaration
public LambdaExpression Parse(string expression)
Parameters
System.String
expression
The string expression to be parsed. |
Returns
System.Linq.Expressions.LambdaExpression
|
Exceptions
ExpressionParserException
ExpressionParserException. |
TryParse(String, out LambdaExpression)
Converts the string representation of an expression to its System.Linq.Expressions.LambdaExpression equivalent. A return value indicates whether the conversion succeeded or failed.
Declaration
public bool TryParse(string expression, out LambdaExpression lambda)
Parameters
System.String
expression
A string containing an expression to convert. |
System.Linq.Expressions.LambdaExpression
lambda
When this method returns, contains the System.Linq.Expressions.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
System.Boolean
true if expression was converted successfully; otherwise, false. |