C# Class BrightIdeasSoftware.FlagBitSetFilter

Instances of this class match a property of a model objects against a list of bit flags. The property should be an xor-ed collection of bits flags.
Both the property compared and the list of possible values must be convertible to ulongs.
Inheritance: OneOfFilter
Show file Open project: soywiz/cspspemu

Public Methods

Method Description
FlagBitSetFilter ( AspectGetterDelegate valueGetter, ICollection possibleValues ) : System

Create an instance

Protected Methods

Method Description
DoesValueMatch ( object result ) : bool

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

Private Methods

Method Description
ConvertPossibleValues ( ) : void

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

FlagBitSetFilter() public method

Create an instance
public FlagBitSetFilter ( AspectGetterDelegate valueGetter, ICollection possibleValues ) : System
valueGetter AspectGetterDelegate
possibleValues ICollection
return System