Declaration
public static JsonDict ToJsonDict<T>(
this IEnumerable<T> source,
Func<T, string> keySelector,
Func<T, JsonValue> valueSelector
)Summary
Creates a
JsonDict from an input collection.
Generic type parameters
| T |
Type of the input collection. |
Parameters
| this IEnumerable<T> | source |
Input collection. |
| Func<T, string> | keySelector |
Function to map each input element to a key for the resulting dictionary. |
| Func<T, JsonValue> | valueSelector |
Function to map each input element to a value for the resulting dictionary. |
Returns
The constructed
JsonDict.