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
Datei anzeigen Open project: soywiz/cspspemu

Public Methods

Method 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.

Protected Methods

Method Description
DoesValueMatch ( object result ) : bool

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

Method Details

DoesValueMatch() protected method

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

Filter() public method

Should the given model object be included?
public Filter ( object modelObject ) : bool
modelObject object
return bool

OneOfFilter() public method

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

OneOfFilter() public method

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
return System