C# Class Spring.Core.MethodParametersCriteria

Criteria that is satisfied if the System.Type of each of the parameters of a given System.Reflection.MethodInfo matches each of the parameter System.Types of a given System.Reflection.MethodInfo.

If no System.Type array is passed to the overloaded constructor, any method that has no parameters will satisfy an instance of this class. The same effect could be achieved by passing the System.Type.EmptyTypes array to the overloaded constructor.

Inheritance: ICriteria
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
IsSatisfied ( object datum ) : bool

Does the supplied datum satisfy the criteria encapsulated by this instance?

MethodParametersCriteria ( ) : System

Creates a new instance of the MethodParametersCriteria class.

MethodParametersCriteria ( Type parameters ) : System

Creates a new instance of the MethodParametersCriteria class.

If the supplied parameters array is null, then this constructor uses the System.Type.EmptyTypes array.

Method Details

IsSatisfied() public method

Does the supplied datum satisfy the criteria encapsulated by this instance?
public IsSatisfied ( object datum ) : bool
datum object The datum to be checked by this criteria instance.
return bool

MethodParametersCriteria() public method

Creates a new instance of the MethodParametersCriteria class.
public MethodParametersCriteria ( ) : System
return System

MethodParametersCriteria() public method

Creates a new instance of the MethodParametersCriteria class.

If the supplied parameters array is null, then this constructor uses the System.Type.EmptyTypes array.

public MethodParametersCriteria ( Type parameters ) : System
parameters System.Type /// The array that this criteria will use to /// check parameter s. ///
return System