Class StringExtensions
Inheritance
System.Object
StringExtensions
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class StringExtensions : object
Methods
| Improve this Doc View SourceAppend(String, String, String)
Declaration
public static string Append(this string stringValue, string stringToLink, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringValue | |
System.String | stringToLink | |
System.String | delimiter |
Returns
Type | Description |
---|---|
System.String |
NormalizeString(String)
Takes a string and removes any diacritics.
Declaration
public static string NormalizeString(this string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | String to normalize. |
Returns
Type | Description |
---|---|
System.String | String without diacritics. |
ReplaceIgnoreCase(String, String, String)
Alternative to
Declaration
public static string ReplaceIgnoreCase(this string source, string oldValue, string newValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
System.String | oldValue | The old value. |
System.String | newValue | The new value. |
Returns
Type | Description |
---|---|
System.String | The |
TrimToLength(String, Int32)
Declaration
public static string TrimToLength(this string source, int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | |
System.Int32 | maxLength |
Returns
Type | Description |
---|---|
System.String |
ValueOrEmpty(String)
Declaration
public static string ValueOrEmpty(this string stringValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringValue |
Returns
Type | Description |
---|---|
System.String |