Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: JsonList ToJsonList<T>(this IEnumerable<T>, Func<T, JsonValue>)

Declaration

public static JsonList ToJsonList<T>(
    this IEnumerable<T> source,
    Func<T, JsonValue> elementSelector
)

Summary

Creates a JsonList from an input collection.

Generic type parameters

T Type of the input collection.

Parameters

this IEnumerable<T>source Input collection.
Func<T, JsonValue>elementSelector Function to map each input element to a JsonValue for the resulting list.

Returns

The constructed JsonList.