C# 클래스 Dev2.Common.ExtMethods.StringExtension

Useful utilities
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 프로퍼티들

프로퍼티 타입 설명
IsValidCategoryname System.Text.RegularExpressions.Regex
IsValidResourcename System.Text.RegularExpressions.Regex

공개 메소드들

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

메소드 상세

ContainsUnicodeCharacter() 공개 정적인 메소드

public static ContainsUnicodeCharacter ( this input ) : bool
input this
리턴 bool

Escape() 공개 정적인 메소드

public static Escape ( this unescaped ) : string
unescaped this
리턴 string

IsAlpha() 공개 정적인 메소드

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

IsAlphaNumeric() 공개 정적인 메소드

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

IsBase64() 공개 정적인 메소드

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

IsBinary() 공개 정적인 메소드

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

IsEmail() 공개 정적인 메소드

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

IsHex() 공개 정적인 메소드

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

IsNumeric() 공개 정적인 메소드

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

IsNumeric() 공개 정적인 메소드

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

IsRealNumber() 공개 정적인 메소드

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

IsRealNumber() 공개 정적인 메소드

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

IsValidCategoryName() 공개 정적인 메소드

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

IsWholeNumber() 공개 정적인 메소드

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

IsWholeNumber() 공개 정적인 메소드

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

ReverseString() 공개 정적인 메소드

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

TryAddKeyboardAccellerator() 공개 정적인 메소드

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
리턴 string

Unescape() 공개 정적인 메소드

public static Unescape ( this payload ) : string
payload this
리턴 string

프로퍼티 상세

IsValidCategoryname 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions IsValidCategoryname
리턴 System.Text.RegularExpressions.Regex

IsValidResourcename 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions IsValidResourcename
리턴 System.Text.RegularExpressions.Regex