C# Класс Utilities.Validation.ExtensionMethods.StringExtensions

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

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

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