ResourceExplorer.BuildType<T>(String, JToken, JsonSerializer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Build type for given $kind using the JToken/serializer as the source.
public T BuildType<T> (string kind, Newtonsoft.Json.Linq.JToken obj, Newtonsoft.Json.JsonSerializer serializer) where T : class;
member this.BuildType : string * Newtonsoft.Json.Linq.JToken * Newtonsoft.Json.JsonSerializer -> 'T (requires 'T : null)
Public Function BuildType(Of T As Class) (kind As String, obj As JToken, serializer As JsonSerializer) As T
Type Parameters
- T
type of object to create.
Parameters
- kind
- String
$kind.
- obj
- Newtonsoft.Json.Linq.JToken
source object.
- serializer
- Newtonsoft.Json.JsonSerializer
serializer to user.
Returns
- T
instantiated object of type(T).