StringExtensions Methods

String Extensions

StringExtensions Methods

The StringExtensions type exposes the following members.

Methods
  Name Description
Public method Static member CapitalizeFirstLetter
The CapitalizeFirstLetter() method takes non empty input string sequence and capitalize first letter of the string
Public method Static member ConvertCyrillicToLatinLetters
The ConvertCyrillicToLatinLetters() method takes cyrillic string sequence and transliterate it to latin one.
Public method Static member ConvertLatinToCyrillicKeyboard
The ConvertLatinToCyrillicKeyboard() method takes latin string sequence and transliterate it to cyrillic one.
Public method Static member GetFileExtension
The GetFileExtension() method reads file name and returns the extension of the file.
Public method Static member GetFirstCharacters
The GetFirstCharacters() method takes string sequence and returns string substring starting from the beginning of the sequence with length - parsed integer number.
Public method Static member GetStringBetween
The GetStringBetween() method takes input string and returns string between parsed start and end strings.
Public method Static member ToBoolean
Check if a string contains true-like statements value: "true", "ok", "yes", "1", "да"
Public method Static member ToByteArray
Converts a string into an array of bytes
Public method Static member ToContentType
The ToContentType() method reads file name, gets the extension of the file and according to it returns file content type.
Public method Static member ToDateTime
Converts input string to DateTime.
Public method Static member ToInteger
Converts input string to integer number.
Public method Static member ToLong
Converts input string to long integer number.
Public method Static member ToMd5Hash
Converts input string to bytes array, compute the hash and each byte of the hashed data is presented as hexadecimal string.
Public method Static member ToShort
Converts input string to 16-bit sight integer number.
Public method Static member ToValidLatinFileName
The ToValidLatinFileName() method takes string, converts it to latin (if it is in cyrillic) and then check whether given file name consists of letters and numbers.
Public method Static member ToValidUsername
The ToValidUsername() method takes string, converts it to latin (if it is in cyrillic) and then check whether given user name consists of letters and numbers.
Top
See Also