Class
FilterDescriptorBase

Base class for all IFilterDescriptor used for handling the logic for property changed notifications.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

[JsonConverter(typeof(FilterDescriptorBaseConverter))]
public class FilterDescriptorBase : JsonObject, IFilterDescriptor

Inheritance: objectJsonObjectFilterDescriptorBase

Derived Classes: CompositeFilterDescriptorFilterDescriptionFilterDescriptor

Implements: IFilterDescriptor

Inherited Members JsonObject.ToJson()

Constructors

FilterDescriptorBase()

Declaration

public FilterDescriptorBase()

Methods

CreateFilterExpression(Expression)

Creates a filter expression by delegating its creation to CreateFilterExpression(ParameterExpression), if instance is ParameterExpression, otherwise throws ArgumentException

Declaration

public virtual Expression CreateFilterExpression(Expression instance)

Parameters

instance

Expression

The instance expression, which will be used for filtering.

Returns

Expression

A predicate filter expression.

Exceptions

ArgumentException

Parameter should be of type ParameterExpression

Implements IFilterDescriptor.CreateFilterExpression(Expression)

CreateFilterExpression(ParameterExpression)

Creates a predicate filter expression used for collection filtering.

Declaration

protected virtual Expression CreateFilterExpression(ParameterExpression parameterExpression)

Parameters

parameterExpression

ParameterExpression

The parameter expression, which will be used for filtering.

Returns

Expression

A predicate filter expression.

Serialize(IDictionary<string, object>)

for internal use

Declaration

protected override void Serialize(IDictionary<string, object> json)

Parameters

json

IDictionary<string, object>

Overrides JsonObject.Serialize(IDictionary<string, object>)