Class ValueChecker
This class check values like numeric, complex, e-mail with static methods.
Inheritance
Inherited Members
Namespace: SDBCS.utility
Assembly: SDBCS.dll
Syntax
public class ValueChecker
Remarks
Author Mehmet Hayati KINAŞ
Version 1.0
Methods
isComplex(String)
This static method check if pasword string is contain letter, digit, other chars and return boolean
Declaration
public static bool isComplex(string pasw)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pasw | Password string parameter |
Returns
| Type | Description |
|---|---|
| System.Boolean | If given string is complex return true, else return false. |
isEmailAddress(String)
This static method check if email string is an e-mail address and return boolean.
Declaration
public static bool isEmailAddress(string email)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | E-mail string |
Returns
| Type | Description |
|---|---|
| System.Boolean | If given string is an e-mail address return true, else return false. |
isMoreComplex(String)
This static method check if pasword string is contain upper case, lower case, digit, other chars and return boolean.
Declaration
public static bool isMoreComplex(string pasw)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pasw | Password string parameter |
Returns
| Type | Description |
|---|---|
| System.Boolean | If given string is complex return true, else return false. |
isNumeric(String)
This static method check if given string is numeric and return boolean.
Declaration
public static bool isNumeric(string pasw)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pasw | Password string parameter |
Returns
| Type | Description |
|---|---|
| System.Boolean | If given string is numeric return true, else return false. |
isNumLocal(String, CultureInfo)
This static method check if given string is locally numeric and return boolean.
Declaration
public static bool isNumLocal(string pasw, CultureInfo loc)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pasw | Password string parameter |
| System.Globalization.CultureInfo | loc | Cultere info instance |
Returns
| Type | Description |
|---|---|
| System.Boolean | if given string is locally numeric return true, else return false. |
remUnvChr(String)
This static method eliminate unwanted characters from string value.
Declaration
public static string remUnvChr(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | String that will be eliminated. |
Returns
| Type | Description |
|---|---|
| System.String | Eliminated string |
remUnvChr4Log(String)
This static method eliminate unwanted characters from string value for logging.
Declaration
public static string remUnvChr4Log(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | String that will be eliminated. |
Returns
| Type | Description |
|---|---|
| System.String | Eliminated string |