StringExtensions Class

Telerik.ILS.Common

StringExtensions Class
The class provides string extension methods.
Inheritance Hierarchy
SystemObject  Telerik.ILS.CommonStringExtensions

Namespace: Telerik.ILS.Common
Assembly: StringExtensions (in StringExtensions.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static class StringExtensions
<ExtensionAttribute>
Public NotInheritable Class StringExtensions
[ExtensionAttribute]
public ref class StringExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type StringExtensions =  class end

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCapitalizeFirstLetter
The method capitalizes the first letter of the string
Public methodStatic memberConvertCyrillicToLatinLetters
The method converts a cyrillic text to latin one
Public methodStatic memberConvertLatinToCyrillicKeyboard
The method converts a latin text to cyrillic one
Public methodStatic memberGetFileExtension
The method gets the extension of a string with filename
Public methodStatic memberGetFirstCharacters
The method returns the first N characters of the string
Public methodStatic memberGetStringBetween
The method returns a substring between two strings
Public methodStatic memberToBoolean
The method checks if the string has a boolean value
Public methodStatic memberToByteArray
The method converts a string to byte array
Public methodStatic memberToContentType
The method gets the content type of a file extension
Public methodStatic memberToDateTime
The method tries to parse the string to DateTime format
Public methodStatic memberToInteger
The method tries to parse the string to integer
Public methodStatic memberToLong
The method tries to parse the string to long
Public methodStatic memberToMd5Hash
The method hashes a string with the MD5 algorithm
Public methodStatic memberToShort
The method tries to parse the string to short
Public methodStatic memberToValidLatinFileName
The method replaces all invalid symbols with empty string
Public methodStatic memberToValidUsername
The method replaces all invalid symbols with empty string
Top
See Also