Json.NET - Quick Starts & API Documentation
AsJEnumerable<(Of <(<'T>)>)> Method (source)
Namespaces ► Newtonsoft.Json.Linq ► Extensions ► AsJEnumerable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Returns the input typed as IJEnumerable<(Of <(<'T>)>)>.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IJEnumerable<T> AsJEnumerable<T>( this IEnumerable<T> source ) where T : JToken
<ExtensionAttribute> _ Public Shared Function AsJEnumerable(Of T As JToken) ( _ source As IEnumerable(Of T) _ ) As IJEnumerable(Of T)
[ExtensionAttribute] public: generic<typename T> where T : JToken static IJEnumerable<T>^ AsJEnumerable( IEnumerable<T>^ source )
Generic Template Parameters
- T
- The source collection type.
Parameters
- source (IEnumerable<(Of <(<'T>)>)>)
- An IEnumerable<(Of <(<'T>)>)> of JToken that contains the source collection.
Return Value
The input typed as IJEnumerable<(Of <(<'T>)>)>.
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.