| CollectionExtensionMethods | StringSplitDelimiters |
| StringExtensionMethods |
Extension methods for collections.
Converts a null collection into an empty collection.
- T - The type of item stored by the collection.
| Name | Description |
|---|---|
| items | System.Collections.Generic.IEnumerable{``0} The collection of items. |
An empty list, if the supplied collection is null; otherwise, the supplied collection.
The types of delimiters that can be used to split strings.
Split by commas.
Default will split by common delimiters (e.g., commas, line breaks, semicolons).
Split by line breaks.
Split by semicolon.
Extension methods for strings.
Static constructor.
Cleans the collection of strings, trimming whitespace and removing empties.
| Name | Description |
|---|---|
| items | System.Collections.Generic.IEnumerable{System.String} The items to clean. |
The cleaned strings.
Splits a string by the specified delimiter.
| Name | Description |
|---|---|
| source | System.String The string to split. |
| delimiter | Rhythm.Core.Enums.StringSplitDelimiters Optional. The delimiter. If unspecified, default delimiters will be used. |
The split strings.
Split a string by the specified characters.
| Name | Description |
|---|---|
| source | System.String The string to split. |
| characters | System.Char[] The characters to split by. |
The split strings.
Split a string by line breaks.
| Name | Description |
|---|---|
| source | System.String The string to split. |
The split strings.