C# Class Spring.Core.MethodArgumentsCriteria

Criteria that is satisfied if the System.Type of each of the arguments 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 Spring.Util.ObjectUtils.EmptyObjects array to the overloaded constructor.

Inheritance: ICriteria
ファイルを表示 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?

This implementation respects the inheritance chain of any parameter System.Types... i.e. methods that have a base type (or interface) that is assignable to the System.Type in the same corresponding index of the parameter types will satisfy this criteria instance.

MethodArgumentsCriteria ( ) : System

Creates a new instance of the MethodArgumentsCriteria class.

MethodArgumentsCriteria ( object arguments ) : System

Creates a new instance of the MethodArgumentsCriteria class.

If the supplied arguments 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?

This implementation respects the inheritance chain of any parameter System.Types... i.e. methods that have a base type (or interface) that is assignable to the System.Type in the same corresponding index of the parameter types will satisfy this criteria instance.

public IsSatisfied ( object datum ) : bool
datum object The datum to be checked by this criteria instance.
return bool

MethodArgumentsCriteria() public method

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

MethodArgumentsCriteria() public method

Creates a new instance of the MethodArgumentsCriteria class.

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

public MethodArgumentsCriteria ( object arguments ) : System
arguments object /// The array that this criteria will use to /// check parameter s. ///
return System