C# Class BellevueCollege.Toolkit

Show file Open project: BellevueCollege/FormsProcessor

Public Methods

Method Description
GetApplicationVersion ( Assembly dll, string format = null ) : string

IsAlphaNumeric ( string strValue ) : bool

IsExpectedNumber ( string strValue, int intAllowedPrecision ) : bool

IsExpectedPIN ( string strValue ) : bool

IsNumber ( string str ) : bool

Identifies whether the specified String can be converted to a number

IsValidEmailAddress ( string strEmailAddress ) : bool

IsValidIntegerQuerystring ( System obj ) : bool

IsValidSQLDate ( string strDate ) : bool

Nullify ( string &str ) : string

Converts an empty/blank String to null

Because this method may potentially be used alot within an application, str is passed by reference to reduce the memory overhead of creating a copy of the parameter's value.

PrepareForDisplay ( string strInput ) : string

RedirectOnSessionTimeout ( ) : void

TitleCase ( string str ) : string

Capitalizes the first letter of each word in a String

This method utilizes code taken from this forum post.

Private Methods

Method Description
CheckForAndReplace ( string &buffer, string token, int component ) : void

Method Details

GetApplicationVersion() public static method

public static GetApplicationVersion ( Assembly dll, string format = null ) : string
dll System.Reflection.Assembly
format string
return string

IsAlphaNumeric() public static method

public static IsAlphaNumeric ( string strValue ) : bool
strValue string
return bool

IsExpectedNumber() public static method

public static IsExpectedNumber ( string strValue, int intAllowedPrecision ) : bool
strValue string
intAllowedPrecision int
return bool

IsExpectedPIN() public static method

public static IsExpectedPIN ( string strValue ) : bool
strValue string
return bool

IsNumber() public static method

Identifies whether the specified String can be converted to a number
public static IsNumber ( string str ) : bool
str string
return bool

IsValidEmailAddress() public static method

public static IsValidEmailAddress ( string strEmailAddress ) : bool
strEmailAddress string
return bool

IsValidIntegerQuerystring() public static method

public static IsValidIntegerQuerystring ( System obj ) : bool
obj System
return bool

IsValidSQLDate() public static method

public static IsValidSQLDate ( string strDate ) : bool
strDate string
return bool

Nullify() public static method

Converts an empty/blank String to null
Because this method may potentially be used alot within an application, str is passed by reference to reduce the memory overhead of creating a copy of the parameter's value.
public static Nullify ( string &str ) : string
str string A string value that might be empty or contain only whitespace
return string

PrepareForDisplay() public static method

public static PrepareForDisplay ( string strInput ) : string
strInput string
return string

RedirectOnSessionTimeout() public static method

public static RedirectOnSessionTimeout ( ) : void
return void

TitleCase() public static method

Capitalizes the first letter of each word in a String
This method utilizes code taken from this forum post.
public static TitleCase ( string str ) : string
str string
return string