C# Класс BrightIdeasSoftware.OneOfFilter

Instances of this class extract a value from the model object and compare that value to a list of fixed values. The model object is included if the extracted value is in the list
If there is no delegate installed or there are no values to match, no model objects will be matched
Наследование: IModelFilter
Показать файл Открыть проект

Открытые методы

Метод Описание
Filter ( object modelObject ) : bool

Should the given model object be included?

OneOfFilter ( AspectGetterDelegate valueGetter ) : System

Create a filter that will use the given delegate to extract values

OneOfFilter ( AspectGetterDelegate valueGetter, ICollection possibleValues ) : System

Create a filter that will extract values using the given delegate and compare them to the values in the given list.

Защищенные методы

Метод Описание
DoesValueMatch ( object result ) : bool

Decides if the given property is a match for the values in the PossibleValues collection

Описание методов

DoesValueMatch() защищенный Метод

Decides if the given property is a match for the values in the PossibleValues collection
protected DoesValueMatch ( object result ) : bool
result object
Результат bool

Filter() публичный Метод

Should the given model object be included?
public Filter ( object modelObject ) : bool
modelObject object
Результат bool

OneOfFilter() публичный Метод

Create a filter that will use the given delegate to extract values
public OneOfFilter ( AspectGetterDelegate valueGetter ) : System
valueGetter AspectGetterDelegate
Результат System

OneOfFilter() публичный Метод

Create a filter that will extract values using the given delegate and compare them to the values in the given list.
public OneOfFilter ( AspectGetterDelegate valueGetter, ICollection possibleValues ) : System
valueGetter AspectGetterDelegate
possibleValues ICollection
Результат System