C# Class Dev2.Common.ExtMethods.StringExtension

Useful utilities
ファイルを表示 Open project: Warewolf-ESB/Warewolf

Public Properties

Property Type Description
IsValidCategoryname System.Text.RegularExpressions.Regex
IsValidResourcename System.Text.RegularExpressions.Regex

Public Methods

Method Description
ContainsUnicodeCharacter ( this input ) : bool
Escape ( this unescaped ) : string
IsAlpha ( this payload ) : bool

Determines whether the specified payload is alpha.

IsAlphaNumeric ( this payload ) : bool

Determines whether [is alpha numeric] [the specified payload].

IsBase64 ( this payload ) : bool

Determines whether the specified payload is base64.

IsBinary ( this payload ) : bool

Determines whether the specified payload is binary.

IsEmail ( this payload ) : bool

Determines whether the specified payload is email.

IsHex ( this payload ) : bool

Determines whether the specified payload is hex.

IsNumeric ( this payload ) : bool

Determines whether the specified payload is numeric.

IsNumeric ( this payload, decimal &value ) : bool

Determines whether the specified payload is numeric.

IsRealNumber ( this payload ) : bool

Determines whether [is real number] [the specified payload].

IsRealNumber ( this payload, int &value ) : bool

Determines whether [is real number] [the specified payload].

IsValidCategoryName ( this payload ) : bool

Determines whether the specified payload is a valid resource category name.

IsWholeNumber ( this payload ) : bool

Determines whether [is whole number] [the specified payload].

IsWholeNumber ( this payload, int &value ) : bool

Determines whether [is whole number] [the specified payload].

ReverseString ( this s ) : string

Reverses the string.

TryAddKeyboardAccellerator ( this input ) : string

Keyboard Accellerators are used in Windows to allow easy shortcuts to controls like Buttons and MenuItems. These allow users to press the Alt key, and a shortcut key will be highlighted on the control. If the user presses that key, that control will be activated. This method checks a string if it contains a keyboard accellerator. If it doesn't, it adds one to the beginning of the string. If there are two strings with the same accellerator, Windows handles it. The keyboard accellerator character for WPF is underscore (_). It will not be visible.

Unescape ( this payload ) : string

Method Details

ContainsUnicodeCharacter() public static method

public static ContainsUnicodeCharacter ( this input ) : bool
input this
return bool

Escape() public static method

public static Escape ( this unescaped ) : string
unescaped this
return string

IsAlpha() public static method

Determines whether the specified payload is alpha.
public static IsAlpha ( this payload ) : bool
payload this The payload.
return bool

IsAlphaNumeric() public static method

Determines whether [is alpha numeric] [the specified payload].
public static IsAlphaNumeric ( this payload ) : bool
payload this The payload.
return bool

IsBase64() public static method

Determines whether the specified payload is base64.
public static IsBase64 ( this payload ) : bool
payload this The payload.
return bool

IsBinary() public static method

Determines whether the specified payload is binary.
public static IsBinary ( this payload ) : bool
payload this The payload.
return bool

IsEmail() public static method

Determines whether the specified payload is email.
public static IsEmail ( this payload ) : bool
payload this The payload.
return bool

IsHex() public static method

Determines whether the specified payload is hex.
public static IsHex ( this payload ) : bool
payload this The payload.
return bool

IsNumeric() public static method

Determines whether the specified payload is numeric.
public static IsNumeric ( this payload ) : bool
payload this The payload.
return bool

IsNumeric() public static method

Determines whether the specified payload is numeric.
public static IsNumeric ( this payload, decimal &value ) : bool
payload this The payload.
value decimal The value.
return bool

IsRealNumber() public static method

Determines whether [is real number] [the specified payload].
public static IsRealNumber ( this payload ) : bool
payload this The payload.
return bool

IsRealNumber() public static method

Determines whether [is real number] [the specified payload].
public static IsRealNumber ( this payload, int &value ) : bool
payload this The payload.
value int The value.
return bool

IsValidCategoryName() public static method

Determines whether the specified payload is a valid resource category name.
public static IsValidCategoryName ( this payload ) : bool
payload this The payload.
return bool

IsWholeNumber() public static method

Determines whether [is whole number] [the specified payload].
public static IsWholeNumber ( this payload ) : bool
payload this The payload.
return bool

IsWholeNumber() public static method

Determines whether [is whole number] [the specified payload].
public static IsWholeNumber ( this payload, int &value ) : bool
payload this The payload.
value int The value.
return bool

ReverseString() public static method

Reverses the string.
public static ReverseString ( this s ) : string
s this The s.
return string

TryAddKeyboardAccellerator() public static method

Keyboard Accellerators are used in Windows to allow easy shortcuts to controls like Buttons and MenuItems. These allow users to press the Alt key, and a shortcut key will be highlighted on the control. If the user presses that key, that control will be activated. This method checks a string if it contains a keyboard accellerator. If it doesn't, it adds one to the beginning of the string. If there are two strings with the same accellerator, Windows handles it. The keyboard accellerator character for WPF is underscore (_). It will not be visible.
public static TryAddKeyboardAccellerator ( this input ) : string
input this
return string

Unescape() public static method

public static Unescape ( this payload ) : string
payload this
return string

Property Details

IsValidCategoryname public_oe static_oe property

public static Regex,System.Text.RegularExpressions IsValidCategoryname
return System.Text.RegularExpressions.Regex

IsValidResourcename public_oe static_oe property

public static Regex,System.Text.RegularExpressions IsValidResourcename
return System.Text.RegularExpressions.Regex