C# Класс Ploeh.AutoFixture.Kernel.FactoryMethodQuery

Selects public factory methods ordered by the modest first.
Наследование: IMethodQuery
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
SelectMethods ( Type type ) : IEnumerable

Selects the public factory methods for the supplied type.

The ordering of the returned methods is based on the number of parameters of the method. Methods with fewer parameters are returned before methods with more parameters. This means that if a default parameterless factory methods exists, it will be the first one returned.

In case of two factory methods with an equal number of parameters, the ordering is unspecified.

Factory methods that contain parameters of the requested type are skipped in order to avoid circular references.

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

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

Selects the public factory methods for the supplied type.

The ordering of the returned methods is based on the number of parameters of the method. Methods with fewer parameters are returned before methods with more parameters. This means that if a default parameterless factory methods exists, it will be the first one returned.

In case of two factory methods with an equal number of parameters, the ordering is unspecified.

Factory methods that contain parameters of the requested type are skipped in order to avoid circular references.

public SelectMethods ( Type type ) : IEnumerable
type System.Type The type.
Результат IEnumerable