C# Class Utilities.Validation.ExtensionMethods.StringExtensions

Mostra file Open project: feanz/Utilities

Public Methods

Method Description
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.

Method Details

IsAlpha() public static method

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

IsAlphaNumeric() public static method

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

IsAlphaNumeric() public static method

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].
return bool

IsEmail() public static method

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.
return bool

IsGuid() public static method

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

IsIPAddress() public static method

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

IsLowerCase() public static method

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

IsMobileNumber() public static method

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

IsNumeric() public static method

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

IsPostcode() public static method

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

IsStrongPassword() public static method

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.
return bool

IsURL() public static method

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.
return bool

IsUpperCase() public static method

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