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

Encapsulates methods to correctly parse querystring parameters.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
BuildColorRegex ( ) : Regex

Builds a regular expression for the three main colour types.

메소드 상세

ParseAngle() 공개 정적인 메소드

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. ///
리턴 float

ParseColor() 공개 정적인 메소드

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. ///
리턴 Color

ParseIn100Range() 공개 정적인 메소드

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. ///
리턴 int