Json.NET - Quick Starts & API Documentation
Children<(Of <(<'T, U>)>)> Method (source)
Namespaces ► Newtonsoft.Json.Linq ► Extensions ► Children<(Of <<'(T, U>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of converted child tokens of every array in the source collection.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IEnumerable<U> Children<T, U>( this IEnumerable<T> source ) where T : JToken
<ExtensionAttribute> _ Public Shared Function Children(Of T As JToken, U) ( _ source As IEnumerable(Of T) _ ) As IEnumerable(Of U)
[ExtensionAttribute] public: generic<typename T, typename U> where T : JToken static IEnumerable<U>^ Children( IEnumerable<T>^ source )
Generic Template Parameters
- T
- The source collection type.
- U
- The type to convert the values to.
Parameters
- source (IEnumerable<(Of <(<'T>)>)>)
- An IEnumerable<(Of <(<'T>)>)> of JToken that contains the source collection.
Return Value
An IEnumerable<(Of <(<'T>)>)> that contains the converted values of every node 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<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter.