A Sandcastle Documented Class Library
StringExtensions Methods |
The StringExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
CapitalizeFirstLetter |
Converts only the first letter of a string to upper case.
|
|
ConvertCyrillicToLatinLetters |
Transforms a string containing cyrillic letters to their latin representation.
|
|
ConvertLatinToCyrillicKeyboard |
Transforms a string containing latin letters to their cyrillic representation.
|
|
GetFileExtension |
Extract the extension of a file if the current string is a valid file name.
|
|
GetFirstCharacters |
Retrieves first 'n' characters from a string.
|
|
GetStringBetween |
Get a substring that starts from a specific string and ends to a specific string.
|
|
ToBoolean |
Converts a string to a boolean value.
|
|
ToByteArray |
Converts a string to a sequence of bytes.
|
|
ToContentType |
Provides a file content type depending on a file extension.
|
|
ToDateTime |
Converts a string with date and time to object of type DateTime.
|
|
ToInteger |
Converts a string to a 32-bits signed number.
|
|
ToLong |
Converts a string to a 64-bits signed number.
|
|
ToMd5Hash |
Computes a md5 hash value for each character and converts them to hexadecimal values.
|
|
ToShort |
Converts a string to a 16-bits signed number.
|
|
ToValidLatinFileName |
Validate that a string contains only valid characters for a file name.
|
|
ToValidUsername |
Validate that a string contains only allowed characters for a username.
|
See Also