Json.NET - Quick Starts & API Documentation
ToObject<(Of <(<'T>)>)> Method (jsonSerializer)
Namespaces ► Newtonsoft.Json.Linq ► JToken ► ToObject<(Of <<'(T>)>>)(JsonSerializer)
Creates the specified .NET type from the JToken using the specified JsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public T ToObject<T>( JsonSerializer jsonSerializer )
Public Function ToObject(Of T) ( _ jsonSerializer As JsonSerializer _ ) As T
public: generic<typename T> T ToObject( JsonSerializer^ jsonSerializer )
Generic Template Parameters
- T
-
[Missing <typeparam name="T"/> documentation for "M:Newtonsoft.Json.Linq.JToken.ToObject``1(Newtonsoft.Json.JsonSerializer)"]
Parameters
- jsonSerializer (JsonSerializer)
- The JsonSerializer that will be used when creating the object.
Return Value
The new object created from the JSON value.