C# Класс BellevueCollege.Toolkit

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CheckForAndReplace ( string &buffer, string token, int component ) : void

Описание методов

GetApplicationVersion() публичный статический Метод

public static GetApplicationVersion ( Assembly dll, string format = null ) : string
dll System.Reflection.Assembly
format string
Результат string

IsAlphaNumeric() публичный статический Метод

public static IsAlphaNumeric ( string strValue ) : bool
strValue string
Результат bool

IsExpectedNumber() публичный статический Метод

public static IsExpectedNumber ( string strValue, int intAllowedPrecision ) : bool
strValue string
intAllowedPrecision int
Результат bool

IsExpectedPIN() публичный статический Метод

public static IsExpectedPIN ( string strValue ) : bool
strValue string
Результат bool

IsNumber() публичный статический Метод

Identifies whether the specified String can be converted to a number
public static IsNumber ( string str ) : bool
str string
Результат bool

IsValidEmailAddress() публичный статический Метод

public static IsValidEmailAddress ( string strEmailAddress ) : bool
strEmailAddress string
Результат bool

IsValidIntegerQuerystring() публичный статический Метод

public static IsValidIntegerQuerystring ( System obj ) : bool
obj System
Результат bool

IsValidSQLDate() публичный статический Метод

public static IsValidSQLDate ( string strDate ) : bool
strDate string
Результат bool

Nullify() публичный статический Метод

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
Результат string

PrepareForDisplay() публичный статический Метод

public static PrepareForDisplay ( string strInput ) : string
strInput string
Результат string

RedirectOnSessionTimeout() публичный статический Метод

public static RedirectOnSessionTimeout ( ) : void
Результат void

TitleCase() публичный статический Метод

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
Результат string