Table of Contents

Class FilterExpressionGenerator

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a service which generates C# functions from text-based filter operations.

public static class FilterExpressionGenerator
Inheritance
FilterExpressionGenerator
Inherited Members

Methods

GenerateExpression<T>(IFilterDefinition<T>, FilterOptions?)

Creates a C# expression for the specified filter and options.

public static Expression<Func<T, bool>> GenerateExpression<T>(IFilterDefinition<T> filter, FilterOptions? filterOptions)

Parameters

filter IFilterDefinition<T>

The filter definition used to generate the expression.

filterOptions FilterOptions

Any options to apply such as case sensitivity.

Returns

Expression<Func<T, bool>>

An expression which can be executed to perform a filter.

Type Parameters

T

The kind of object to filter.