• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class EscapedString

Inheritance
System.Object
EscapedString
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class EscapedString : object

Methods

| Improve this Doc View Source

Combine(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.

| Improve this Doc View Source

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 ','.

| Improve this Doc View Source

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 '&apos;, the seperator char is ','.

| Improve this Doc View Source

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 '&apos;.

| Improve this Doc View Source

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 '&apos;, the seperator char is ','.

| Improve this Doc View Source

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 '&apos;, the seperator char is ','.

  • View Source
Back to top by the community, for the community... #DNNCMS