Microsoft.Bot.Builder.Resource.Extensions Class Reference

Extensions for resources. More...

Static Public Member Functions

static string MakeList (IEnumerable< string > elements, string separator=SEPARATOR, string escape=ESCAPED_SEPARATOR)
 Makes a string list. More...
 
static string MakeList (params string[] elements)
 Makes a list from parameters. More...
 
static string[] SplitList (this string str, string separator=SEPARATOR, string escape=ESCAPED_SEPARATOR)
 A string extension method that splits a list. More...
 

Public Attributes

const string ESCAPED_SEPARATOR = "__semi"
 When the SEPARATOR is found in a string list, the escaped replacement. More...
 
const string SEPARATOR = ";"
 The separator character between elements in a string list. More...
 

Detailed Description

Extensions for resources.

Definition at line 12 of file Resource/Extensions.cs.

Member Function Documentation

static string Microsoft.Bot.Builder.Resource.Extensions.MakeList ( IEnumerable< string >  elements,
string  separator = SEPARATOR,
string  escape = ESCAPED_SEPARATOR 
)
inlinestatic

Makes a string list.

Parameters
elementsThe elements to combine into a list.
separatorThe separator character between elements in a string list.
escapeThe escape string for separator characters.
Returns
A string.

Definition at line 27 of file Resource/Extensions.cs.

static string Microsoft.Bot.Builder.Resource.Extensions.MakeList ( params string[]  elements)
inlinestatic

Makes a list from parameters.

Parameters
elementsThe elements to combine into a list.
Returns
A string.

Definition at line 37 of file Resource/Extensions.cs.

static string [] Microsoft.Bot.Builder.Resource.Extensions.SplitList ( this string  str,
string  separator = SEPARATOR,
string  escape = ESCAPED_SEPARATOR 
)
inlinestatic

A string extension method that splits a list.

Parameters
strThe str to act on.
separatorThe separator character between elements in a string list.
escapeThe escape string for separator characters.
Returns
A string[].

Definition at line 49 of file Resource/Extensions.cs.

Member Data Documentation

const string Microsoft.Bot.Builder.Resource.Extensions.ESCAPED_SEPARATOR = "__semi"

When the SEPARATOR is found in a string list, the escaped replacement.

Definition at line 18 of file Resource/Extensions.cs.

const string Microsoft.Bot.Builder.Resource.Extensions.SEPARATOR = ";"

The separator character between elements in a string list.

Definition at line 15 of file Resource/Extensions.cs.


The documentation for this class was generated from the following file: