C# Класс LinFu.IoC.Factories.FunctorFactory

A class that converts a delegate into an IFactory instance.
Наследование: IFactory
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateInstance ( IFactoryRequest request ) : object

Instantiates an object reference using the given factory method.

FunctorFactory ( object>.Func factoryMethod ) : System

Initializes the class with the given factoryMethod.

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

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

Instantiates an object reference using the given factory method.
public CreateInstance ( IFactoryRequest request ) : object
request IFactoryRequest The instance that describes the requested service.
Результат object

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

Initializes the class with the given factoryMethod.
public FunctorFactory ( object>.Func factoryMethod ) : System
factoryMethod object>.Func The delegate that will be used to instantiate a type.
Результат System