C# 클래스 LinFu.IoC.Factories.FunctorFactory

A class that converts a delegate into an IFactory instance.
상속: IFactory
파일 보기 프로젝트 열기: philiplaureano/LinFu 1 사용 예제들

공개 메소드들

메소드 설명
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