Språk

SourcePoint.ReadObjectWithSourcePoints<T> Metod

Definition

Läs objektet som T och returnera start-/slutpunkterna för det objekt som lästes.

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

Typparametrar

T

Typ av objekt att deserialisera.

Parametrar

reader
Newtonsoft.Json.JsonReader

läsare att läsa från.

read
Func<Newtonsoft.Json.JsonReader,T>

Funktion att bearbeta under läsningen.

start
SourcePoint

Resultatstartpunkt för objektet.

end
SourcePoint

resultatslutpunkt för objektet.

Returer

T

deserialiserat objekt som typ(T).

Gäller för