StringExtensions Methods
Include Protected Members
Include Inherited Members
The StringExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
As<TValue>(String) | Converts a string to a strongly typed value of the specified data type. | |
As<TValue>(String, TValue) | Converts a string to the specified data type and specifies a default value. | |
AsBool(String) | Converts a string to a Boolean (true/false) value. | |
AsBool(String, Boolean) | Converts a string to a Boolean (true/false) value and specifies a default value. | |
AsDateTime(String) | Converts a string to a DateTime value. | |
AsDateTime(String, DateTime) | Converts a string to a DateTime value and specifies a default value. | |
AsDecimal(String) | Converts a string to a Decimal number. | |
AsDecimal(String, Decimal) | Converts a string to a Decimal number and specifies a default value. | |
AsFloat(String) | Converts a string to a Single number. | |
AsFloat(String, Single) | Converts a string to a Single number and specifies a default value. | |
AsInt(String) | Converts a string to an integer. | |
AsInt(String, Int32) | Converts a string to an integer and specifies a default value. | |
Is<TValue> | Checks whether a string can be converted to the specified data type. | |
IsBool | Checks whether a string can be converted to the Boolean (true/false) type. | |
IsDateTime | Checks whether a string can be converted to the DateTime type. | |
IsDecimal | Checks whether a string can be converted to the Decimal type. | |
IsEmpty | Checks whether a string value is null reference (Nothing in Visual Basic) or empty. | |
IsFloat | Checks whether a string can be converted to the Single type. | |
IsInt | Checks whether a string can be converted to an integer. |
Top