StringExtensions Methods
The StringExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
Escape |
Escapes the specified string in a compatible format with the Javascript escape method.
|
|
HTMLDecode |
HTMLs the decode.
|
|
HTMLEncode |
HTMLs the encode.
|
|
IsGuid |
Determines whether the specified s is unique identifier.
|
|
JavaScriptDeserialize |
Javas the script deserialize.
|
|
JavaScriptSerialize |
Javas the script serialize.
|
|
Left |
Returns the left part of this string instance.
|
|
ReplaceFirst |
A string extension method that replace first occurence.
|
|
Right |
Returns the right part of the string instance.
|
|
SafeString |
Safes the string.
|
|
Shorten(String, Int32, Boolean) |
Gets a Shortened version of a string
|
|
Shorten(String, Int32, Boolean, Boolean%) |
Gets a Shortened version of a string
|
|
StripHTML |
Strips the HTML.
|
|
ToAlphaNumeric |
Converts to alphanumeric.
|
|
ToCamelCase |
Converts to camelcase.
|
|
ToDateTime |
Converts to datetime.
|
|
ToDouble |
Converts to double.
|
|
ToGuid |
Converts to guid.
|
|
ToInteger |
Converts to integer.
|
|
ToLineBreakToHtml |
Converts to linebreaktohtml.
|
|
ToSpaceToHtml |
Converts to spacetohtml.
|
|
ToTabToHtml |
Converts to tabtohtml.
|
|
TrimPunctuation |
Trims the punctuation.
|
|
TrimWhiteSpace |
Trims the white space.
|
|
Unscape |
Unescapes the specified string in a compatible format with the Javascript escape method.
|
|
UrlFriendly |
Creates a string that is Url-friendly.
|