Udostępnij za pośrednictwem


SourcePoint.ReadObjectWithSourcePoints<T> Metoda

Definicja

Odczytaj obiekt jako T i zwróć punkty początkowe/końcowe dla odczytywanego obiektu.

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

Parametry typu

T

typ obiektu do deserializacji.

Parametry

reader
Newtonsoft.Json.JsonReader

czytelnik do odczytania.

read
Func<Newtonsoft.Json.JsonReader,T>

funkcja do przetwarzania podczas odczytywania.

start
SourcePoint

wynik punktu początkowego dla obiektu.

end
SourcePoint

punkt końcowy wyniku dla obiektu.

Zwraca

T

deserializowany obiekt jako typ (T).

Dotyczy