Extension methods for IDictionary.
More...
|
static string | BNDump< K, V > (this IDictionary< K, V > dict, bool appendNewLine=true, string? prefix="", string? postfix="", string delimiter="; ") |
| Dumps a dictionary to a string.
|
|
static void | BNAddRange< K, V > (this IDictionary< K, V > dict, IDictionary< K, V > collection) |
| Adds a dictionary to an existing one.
|
|
static DictionaryXML< K, V > | BNToDictionaryXML< K, V > (this IDictionary< K, V > dict) |
| Converts a dictionary to a XML serializable dictionary.
|
|
static List< K > | BNKeys< K, V > (this IDictionary< K, V > dict) |
| Gets the keys of a Dictionary as List.
|
|
Extension methods for IDictionary.
◆ BNAddRange< K, V >()
static void BogaNet.Extension.DictionaryExtension.BNAddRange< K, V > |
( |
this IDictionary< K, V > | dict, |
|
|
IDictionary< K, V > | collection ) |
|
static |
Adds a dictionary to an existing one.
- Parameters
-
dict | IDictionary-instance |
collection | Dictionary to add |
- Exceptions
-
◆ BNDump< K, V >()
static string BogaNet.Extension.DictionaryExtension.BNDump< K, V > |
( |
this IDictionary< K, V > | dict, |
|
|
bool | appendNewLine = true, |
|
|
string? | prefix = "", |
|
|
string? | postfix = "", |
|
|
string | delimiter = "; " ) |
|
static |
Dumps a dictionary to a string.
- Parameters
-
dict | IDictionary-instance to dump |
appendNewLine | Append new line, otherwise use the given delimiter (optional, default: true) |
prefix | Prefix for every element (optional, default: empty) |
postfix | Postfix for every element (optional, default: empty) |
delimiter | Delimiter if appendNewLine is false (optional, default: "; ") |
- Returns
- String with lines for all dictionary entries
- Exceptions
-
◆ BNKeys< K, V >()
static List< K > BogaNet.Extension.DictionaryExtension.BNKeys< K, V > |
( |
this IDictionary< K, V > | dict | ) |
|
|
static |
Gets the keys of a Dictionary as List.
- Parameters
-
dict | Dictionary with the keys |
- Returns
- List of all keys from the dictionary
- Exceptions
-
◆ BNToDictionaryXML< K, V >()
static DictionaryXML< K, V > BogaNet.Extension.DictionaryExtension.BNToDictionaryXML< K, V > |
( |
this IDictionary< K, V > | dict | ) |
|
|
static |
Converts a dictionary to a XML serializable dictionary.
- Parameters
-
- Returns
- XML serializable dictionary
- Exceptions
-
The documentation for this class was generated from the following file: