Share via


SourcePoint.ReadObjectWithSourcePoints<T> Method

Definition

Read object as T and return the start/end points for the object that was read.

public static T ReadObjectWithSourcePoints<T> (Newtonsoft.Json.JsonReader reader, Func<Newtonsoft.Json.JsonReader,T> read, out Microsoft.Bot.Builder.Dialogs.Debugging.SourcePoint start, out Microsoft.Bot.Builder.Dialogs.Debugging.SourcePoint end);
static member ReadObjectWithSourcePoints : Newtonsoft.Json.JsonReader * Func<Newtonsoft.Json.JsonReader, 'T> * SourcePoint * SourcePoint -> 'T
Public Shared Function ReadObjectWithSourcePoints(Of T) (reader As JsonReader, read As Func(Of JsonReader, T), ByRef start As SourcePoint, ByRef end As SourcePoint) As T

Type Parameters

T

type of object to deserialize.

Parameters

reader
Newtonsoft.Json.JsonReader

reader to read from.

read
Func<Newtonsoft.Json.JsonReader,T>

function to process during reading.

start
SourcePoint

result start point for object.

end
SourcePoint

result end point for object.

Returns

T

deserialized object as type(T).

Applies to