C# 클래스 ImageProcessor.Web.Helpers.QueryTypeDescriptor

Hold the collection of IQueryParamConverter converters
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor 1 사용 예제들

공개 메소드들

메소드 설명
AddConverter ( Type type, Type converter ) : void

Adds the given converter for the specified type.

GetConverter ( Type type ) : IQueryParamConverter

Returns an instance of the correct converter for the given type.

메소드 상세

AddConverter() 공개 정적인 메소드

Adds the given converter for the specified type.
/// Thrown if the converter does not implement . ///
public static AddConverter ( Type type, Type converter ) : void
type System.Type The type.
converter System.Type The converter.
리턴 void

GetConverter() 공개 정적인 메소드

Returns an instance of the correct converter for the given type.
public static GetConverter ( Type type ) : IQueryParamConverter
type System.Type The type.
리턴 IQueryParamConverter