Class EscapedString
Inheritance
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class EscapedString : object
Methods
| Improve this Doc View SourceCombine(IEnumerable, Char)
Combine the string values of the enumerable into an escaped string.
Declaration
public static string Combine(IEnumerable enumerable, char seperator)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | enumerable | An IEnumerable of values to combine. |
System.Char | seperator | The character to use as a seperator. |
Returns
Type | Description |
---|---|
System.String | An escaped string that is seperated using the specified characeter. The escape character is ''. The string returned by .ToString() is used as the value of each item in the IEnumerable. |
Combine(IEnumerable)
Combine the string values of the enumerable into an escaped string.
Declaration
public static string Combine(IEnumerable enumerable)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | enumerable | An IEnumerable of values to combine. |
Returns
Type | Description |
---|---|
System.String | An escaped string that is seperated using the specified characeter. The escape character is ''. The string returned by .ToString() is used as the value of each item in the IEnumerable. |
Remarks
The seperator char is ','.
Seperate(String, Boolean)
Takes an escaped string and splits it into an IEnumerable of seperate strings.
Declaration
public static IEnumerable<string> Seperate(string combinedString, bool trimWhitespaces)
Parameters
Type | Name | Description |
---|---|---|
System.String | combinedString | The string to seperate. |
System.Boolean | trimWhitespaces | Trims whitespaces. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | IEnumerable of all the seperated strings. |
Remarks
The escape character is '', the seperator char is ','.
Seperate(String, Char, Boolean)
Takes an escaped string and splits it into an IEnumerable of seperate strings.
Declaration
public static IEnumerable<string> Seperate(string combinedString, char seperator, bool trimWhitespaces)
Parameters
Type | Name | Description |
---|---|---|
System.String | combinedString | The string to seperate. |
System.Char | seperator | The character on which to split. |
System.Boolean | trimWhitespaces | Trims whitespaces. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | IEnumerable of all the seperated strings. |
Remarks
The escape character is ''.
Seperate(String, Char)
Takes an escaped string and splits it into an IEnumerable of seperate strings.
Declaration
public static IEnumerable<string> Seperate(string combinedString, char separator)
Parameters
Type | Name | Description |
---|---|---|
System.String | combinedString | The string to seperate. |
System.Char | separator | The character on which to split. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | IEnumerable of all the seperated strings. |
Remarks
The escape character is '', the seperator char is ','.
Seperate(String)
Takes an escaped string and splits it into an IEnumerable of seperate strings.
Declaration
public static IEnumerable<string> Seperate(string combinedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | combinedString | The string to seperate. |
Returns
Type | Description |
---|---|
IEnumerable<System.String> | IEnumerable of all the seperated strings. |
Remarks
The escape character is '', the seperator char is ','.