C# Class ImageProcessor.Web.Helpers.QueryTypeDescriptor

Hold the collection of IQueryParamConverter converters
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

GetConverter() public static méthode

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