C# Class 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
Inheritance: IModelFilter
Afficher le fichier Open project: soywiz/cspspemu

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
DoesValueMatch ( object result ) : bool

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

Method Details

DoesValueMatch() protected méthode

Decides if the given property is a match for the values in the PossibleValues collection
protected DoesValueMatch ( object result ) : bool
result object
Résultat bool

Filter() public méthode

Should the given model object be included?
public Filter ( object modelObject ) : bool
modelObject object
Résultat bool

OneOfFilter() public méthode

Create a filter that will use the given delegate to extract values
public OneOfFilter ( AspectGetterDelegate valueGetter ) : System
valueGetter AspectGetterDelegate
Résultat System

OneOfFilter() public méthode

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
Résultat System