C# 클래스 Utilities.Validation.ExtensionMethods.StringExtensions

파일 보기 프로젝트 열기: feanz/Utilities

공개 메소드들

메소드 설명
IsAlpha ( this alpha ) : bool

Determines whether the specified string contains only alpha characters.

IsAlphaNumeric ( this alphaNumeric ) : bool

Determines whether the specified string contains only alphanumeric characters

IsAlphaNumeric ( this alphaNumeric, bool allowSpaces ) : bool

Determines whether the specified string contains only alphanumeric characters

IsEmail ( this emailaddress ) : bool

Determines whether the specified email address string is valid based on regular expression uation.

IsGuid ( this guid ) : bool

Determines whether the specified string is a valid GUID.

IsIPAddress ( this ipAddress ) : bool

Determines whether the specified string is a valid IP address.

IsLowerCase ( this text ) : bool

Determines whether the specified string is lower case.

IsMobileNumber ( this mobileNumber ) : bool

Determines whether the specified string is a mobilenumber.

IsNumeric ( this numeric ) : bool

Determines whether the specified string contains only numeric characters

IsPostcode ( this postcode ) : bool

Determines whether the specified string is a postcode.

IsStrongPassword ( this password ) : bool

Determines whether the specified string is consider a strong password based on the supplied string.

IsURL ( this url ) : bool

Determines whether the specified string is a valid URL string using the referenced regex string.

IsUpperCase ( this text ) : bool

Determines whether the specified string is upper case.

메소드 상세

IsAlpha() 공개 정적인 메소드

Determines whether the specified string contains only alpha characters.
public static IsAlpha ( this alpha ) : bool
alpha this The string.
리턴 bool

IsAlphaNumeric() 공개 정적인 메소드

Determines whether the specified string contains only alphanumeric characters
public static IsAlphaNumeric ( this alphaNumeric ) : bool
alphaNumeric this The string.
리턴 bool

IsAlphaNumeric() 공개 정적인 메소드

Determines whether the specified string contains only alphanumeric characters
public static IsAlphaNumeric ( this alphaNumeric, bool allowSpaces ) : bool
alphaNumeric this The string.
allowSpaces bool if set to true [allow spaces].
리턴 bool

IsEmail() 공개 정적인 메소드

Determines whether the specified email address string is valid based on regular expression uation.
public static IsEmail ( this emailaddress ) : bool
emailaddress this The email address string.
리턴 bool

IsGuid() 공개 정적인 메소드

Determines whether the specified string is a valid GUID.
public static IsGuid ( this guid ) : bool
guid this The GUID.
리턴 bool

IsIPAddress() 공개 정적인 메소드

Determines whether the specified string is a valid IP address.
public static IsIPAddress ( this ipAddress ) : bool
ipAddress this The ip address.
리턴 bool

IsLowerCase() 공개 정적인 메소드

Determines whether the specified string is lower case.
public static IsLowerCase ( this text ) : bool
text this The input string.
리턴 bool

IsMobileNumber() 공개 정적인 메소드

Determines whether the specified string is a mobilenumber.
public static IsMobileNumber ( this mobileNumber ) : bool
mobileNumber this the mobilenumber
리턴 bool

IsNumeric() 공개 정적인 메소드

Determines whether the specified string contains only numeric characters
public static IsNumeric ( this numeric ) : bool
numeric this The string.
리턴 bool

IsPostcode() 공개 정적인 메소드

Determines whether the specified string is a postcode.
public static IsPostcode ( this postcode ) : bool
postcode this the postcode
리턴 bool

IsStrongPassword() 공개 정적인 메소드

Determines whether the specified string is consider a strong password based on the supplied string.
public static IsStrongPassword ( this password ) : bool
password this The password.
리턴 bool

IsURL() 공개 정적인 메소드

Determines whether the specified string is a valid URL string using the referenced regex string.
public static IsURL ( this url ) : bool
url this The URL string.
리턴 bool

IsUpperCase() 공개 정적인 메소드

Determines whether the specified string is upper case.
public static IsUpperCase ( this text ) : bool
text this The input string.
리턴 bool