Method DeserializeListsToDictionary
DeserializeListsToDictionary<TKey, TValue>(List<TKey>, List<TValue>, Dictionary<TKey, TValue>)
Deserialize the given lists into the given dictionary.
Declaration
protected static void DeserializeListsToDictionary<TKey, TValue>(List<TKey> keys, List<TValue> values, Dictionary<TKey, TValue> container)
Parameters
| Type | Name | Description |
|---|---|---|
| List<TKey> | keys | A list of keys. It is cleared after the dictionary has been filled. |
| List<TValue> | values | A list of values. It is cleared after the dictionary has been filled. |
| Dictionary<TKey, TValue> | container | The dictionary that will be filled with serialized data. It is cleared even if the given lists are empty. |
Type Parameters
| Name | Description |
|---|---|
| TKey | |
| TValue |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if any of the argument is null. |
| SerializationException | Thrown if the given lists have a different item count. |