C# Class ImageProcessor.Web.Helpers.CommonParameterParserUtility

Encapsulates methods to correctly parse querystring parameters.
显示文件 Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method 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

Method Description
BuildColorRegex ( ) : Regex

Builds a regular expression for the three main colour types.

Method Details

ParseAngle() public static method

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. ///
return float

ParseColor() public static method

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. ///
return Color

ParseIn100Range() public static method

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. ///
return int