Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
Extensions Class
Extensions Methods
Children Method
Children(T) Method (IEnumerable(T))
Children(T, U) Method (IEnumerable(T))
Extensions
Children
T
,
U
Method (IEnumerable
T
)
Returns a collection of converted child tokens of every array in the source collection.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
static
IEnumerable
<U>
Children
<T, U>(
this
IEnumerable
<T>
source
)
where
T :
JToken
Parameters
source
Type:
System.Collections.Generic
IEnumerable
T
An
IEnumerable
T
of
JToken
that contains the source collection.
Type Parameters
T
The source collection type.
U
The type to convert the values to.
Return Value
Type:
IEnumerable
U
An
IEnumerable
T
that contains the converted values of every token in the source collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
Extensions Class
Children Overload
Newtonsoft.Json.Linq Namespace
Json.NET Home