Class StringUtils
Namespace: Xareus.Unity.Utils
Assembly: Xareus.Unity.Utils.dll
Syntax
public static class StringUtils
Methods
ComposeStrings(params string[])
Creates a string from a set of strings, concatenating them, separated by "|" and surrounded by brackets.
Declaration
public static string ComposeStrings(params string[] elements)
Parameters
Type | Name | Description |
---|---|---|
string[] | elements | Set of strings to assemble. |
Returns
Type | Description |
---|---|
string | Concatenating strings, separated by "|" and surrounded by brackets. |
DecomposeString(string)
Decompose a string composed by the "ComposeString" method into an array of strings.
Declaration
public static string[] DecomposeString(string composedString)
Parameters
Type | Name | Description |
---|---|---|
string | composedString | A string composed of strings surrounded by brackets and separated by "|". |
Returns
Type | Description |
---|---|
string[] | An array of the strings extracted from the composed string. |