C# Класс Spring.Core.MethodParametersCountCriteria

Criteria that is satisfied if the number of parameters to a given System.Reflection.MethodBase matches an arbitrary number.

This class supports checking the parameter count of both methods and constructors.

Default parameters, etc need to taken into account.

Наследование: ICriteria
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsSatisfied ( object datum ) : bool

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

MethodParametersCountCriteria ( ) : System

Creates a new instance of the MethodParametersCountCriteria class.

This constructor sets the MethodParametersCountCriteria.ExpectedParameterCount property to zero (0).

MethodParametersCountCriteria ( int expectedParameterCount ) : System

Creates a new instance of the MethodParametersCountCriteria class.

Описание методов

IsSatisfied() публичный Метод

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.
Результат bool

MethodParametersCountCriteria() публичный Метод

Creates a new instance of the MethodParametersCountCriteria class.

This constructor sets the MethodParametersCountCriteria.ExpectedParameterCount property to zero (0).

public MethodParametersCountCriteria ( ) : System
Результат System

MethodParametersCountCriteria() публичный Метод

Creates a new instance of the MethodParametersCountCriteria class.
/// If the supplied is less /// than zero. ///
public MethodParametersCountCriteria ( int expectedParameterCount ) : System
expectedParameterCount int /// The number of parameters that a /// must have to satisfy this criteria. ///
Результат System