C# Class ImageProcessor.Web.Helpers.QueryTypeDescriptor

Hold the collection of IQueryParamConverter converters
显示文件 Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddConverter() public static method

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.
return void

GetConverter() public static method

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