Table of Contents

Class ValueFilterBase<T>

Namespace
Magicalizer.Filters.Abstractions
Assembly
Magicalizer.Filters.Abstractions.dll

Base of the filters of value properties (e.g. BooleanFilter): the null and equality conditions. Only the conditions that are set are applied.

public abstract class ValueFilterBase<T> : IFilter where T : struct

Type Parameters

T

Value type.

Inheritance
ValueFilterBase<T>
Implements
Derived
Inherited Members

Constructors

ValueFilterBase(bool?, T?)

Creates a filter with the given conditions.

protected ValueFilterBase(bool? isNull = null, T? equals = null)

Parameters

isNull bool?

Matches null values if true, non-null ones if false.

equals T?

Matches values equal to this one.

Properties

Equals

Matches values equal to this one.

public T? Equals { get; set; }

Property Value

T?

IsNull

Matches null values if true, non-null ones if false.

public bool? IsNull { get; set; }

Property Value

bool?