Class ExpressionTypeConverter
Converts a string to a LINQ node expression containing the parsed string. Uses Telerik Expression Parser to parse the string to an ExpressionNode (AST) object. If there is a parse error returns null.
Inheritance
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public class ExpressionTypeConverter : TypeConverter
Constructors
ExpressionTypeConverter()
Declaration
public ExpressionTypeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
|
System.Type
sourceType
|
Returns
System.Boolean
|
Remarks
True if sourceType
is a System.String type; otherwise, false.
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
|
System.Globalization.CultureInfo
culture
|
System.Object
value
|
Returns
System.Object
|