C# Class BellevueCollege.Toolkit

Afficher le fichier Open project: BellevueCollege/FormsProcessor

Méthodes publiques

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

Méthode Description
CheckForAndReplace ( string &buffer, string token, int component ) : void

Method Details

GetApplicationVersion() public static méthode

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

IsAlphaNumeric() public static méthode

public static IsAlphaNumeric ( string strValue ) : bool
strValue string
Résultat bool

IsExpectedNumber() public static méthode

public static IsExpectedNumber ( string strValue, int intAllowedPrecision ) : bool
strValue string
intAllowedPrecision int
Résultat bool

IsExpectedPIN() public static méthode

public static IsExpectedPIN ( string strValue ) : bool
strValue string
Résultat bool

IsNumber() public static méthode

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

IsValidEmailAddress() public static méthode

public static IsValidEmailAddress ( string strEmailAddress ) : bool
strEmailAddress string
Résultat bool

IsValidIntegerQuerystring() public static méthode

public static IsValidIntegerQuerystring ( System obj ) : bool
obj System
Résultat bool

IsValidSQLDate() public static méthode

public static IsValidSQLDate ( string strDate ) : bool
strDate string
Résultat bool

Nullify() public static méthode

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
Résultat string

PrepareForDisplay() public static méthode

public static PrepareForDisplay ( string strInput ) : string
strInput string
Résultat string

RedirectOnSessionTimeout() public static méthode

public static RedirectOnSessionTimeout ( ) : void
Résultat void

TitleCase() public static méthode

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
Résultat string