-
Notifications
You must be signed in to change notification settings - Fork 2
Extensions.String
Provides extension methods applied to String
"SQL" Like function with that works with wildcards
Param | Description |
---|---|
toSearch | |
toFind |
Returns:
String.Format shortcut
Param | Description |
---|---|
s | |
args | Arguments |
Returns:
Converts given string to Int32
or returns defaultValue
Param | Description |
---|---|
s | |
defaultValue |
Returns:
Converts given string to Nullable
Int32
or returns defaultValue
Param | Description |
---|---|
s | |
defaultValue |
Returns:
Converts given string to Double
or returns defaultValue
Param | Description |
---|---|
s | |
defaultValue |
Returns:
Converts given string to Single
or returns defaultValue
Param | Description |
---|---|
s | |
defaultValue |
Returns:
Converts given string to DateTime
or returns defaultValue
Param | Description |
---|---|
s | |
defaultValue |
Returns:
Parse a string to any other type including nullable types using TypeConverter
Type Param | Description |
---|---|
T |
Param | Description |
---|---|
value |
Returns:
Returns of given length. If length of given string is greater
Param | Description |
---|---|
str | |
maxLenght | |
suffix |
Returns:
Returns string located between two given characters
Param | Description |
---|---|
str | |
first | |
last |
Returns:
🔹 Method Extensions.String.StringExtensions.EndsWith(System.String,System.String[],System.String,System.Boolean)
Checks whether string ends with given sequence
Param | Description |
---|---|
toSearch | |
extension | |
ignoreString | |
ignoreCase |
Returns:
Converts string into enumerator of type T
Type Param | Description |
---|---|
T |
Param | Description |
---|---|
value | |
ignoreCase |
Returns:
Determines whether given string is a valid URL.
Returns: true
if is valid URL otherwise returns false
.
Determines whether given string is a valid email address
Returns: true
if is valid email address otherwise returns false
.
Inverse function of IsNullOrEmpty
Param | Description |
---|---|
s |
Returns:
Returns given string as Uri
Param | Description |
---|---|
s |
Returns:
Returns true if given string is an Int32
Param | Description |
---|---|
s |
Returns:
Capitalizes all words in a given sentence
Param | Description |
---|---|
s | |
wordSeperator |
Returns:
Capitalizes first character of given word
Param | Description |
---|---|
s |
Returns:
🔹 Method Extensions.String.StringExtensions.SplitRgx(System.String,System.String,System.Text.RegularExpressions.RegexOptions)
Shortcut for Split
Param | Description |
---|---|
s | |
pattern | |
regexOptions |
Returns:
🔹 Method Extensions.String.StringExtensions.ReplaceRgx(System.String,System.String,System.String,System.Text.RegularExpressions.RegexOptions)
Shortcut for Replace
Param | Description |
---|---|
s | |
pattern | |
replacement | |
regexOptions |
Returns:
Removes all whitespace char from given string using Replace
Param | Description |
---|---|
s |
Returns:
Replaces Czech accents characters in given string with neutral characters
Param | Description |
---|---|
s |
Returns:
Converts to a HTML-encoded string
Param | Description |
---|---|
data | The data. |
Returns:
Converts the HTML-encoded string into a decoded string
Encode an Url string
Converts a string that has been encoded for transmission in a URL into a decoded string.