Ancestors Method (source)

Json.NET

Json.NET - Quick Starts & API Documentation Ancestors<(Of <(<'T>)>)> Method (source)
NamespacesNewtonsoft.Json.LinqExtensionsAncestors<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns a collection of tokens that contains the ancestors of every token in the source collection.
Declaration Syntax
C# Visual Basic Visual C++
public static IJEnumerable<JToken> Ancestors<T>(
	this IEnumerable<T> source
)
where T : JToken
<ExtensionAttribute> _
Public Shared Function Ancestors(Of T As JToken) ( _
	source As IEnumerable(Of T) _
) As IJEnumerable(Of JToken)
[ExtensionAttribute]
public:
generic<typename T>
where T : JToken
static IJEnumerable<JToken^>^ Ancestors(
	IEnumerable<T>^ source
)
Generic Template Parameters
T
The type of the objects in source, constrained to JToken.
Parameters
source (IEnumerable<(Of <(<'T>)>)>)
An IEnumerable<(Of <(<'T>)>)> of JToken that contains the source collection.
Return Value
An IEnumerable<(Of <(<'T>)>)> of JToken that contains the ancestors 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.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)