C# Class ImageProcessor.Web.Helpers.CommonParameterParserUtility

Encapsulates methods to correctly parse querystring parameters.
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor

Méthodes publiques

Méthode Description
ParseAngle ( string input ) : float

Returns the correct T:System.Int32 containing the angle for the given string.

ParseColor ( string input ) : Color

Returns the correct T:System.Drawing.Color for the given string.

ParseIn100Range ( string input ) : int

Returns the correct T:System.Int32 for the given string.

Private Methods

Méthode Description
BuildColorRegex ( ) : Regex

Builds a regular expression for the three main colour types.

Method Details

ParseAngle() public static méthode

Returns the correct T:System.Int32 containing the angle for the given string.
public static ParseAngle ( string input ) : float
input string /// The input string containing the value to parse. ///
Résultat float

ParseColor() public static méthode

Returns the correct T:System.Drawing.Color for the given string.
public static ParseColor ( string input ) : Color
input string /// The input string containing the value to parse. ///
Résultat Color

ParseIn100Range() public static méthode

Returns the correct T:System.Int32 for the given string.
public static ParseIn100Range ( string input ) : int
input string /// The input string containing the value to parse. ///
Résultat int