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
파일 보기 프로젝트 열기: soywiz/cspspemu

공개 메소드들

메소드 설명
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