語言

SourcePoint.ReadObjectWithSourcePoints<T> 方法

定義

將物件讀作 T,並回傳所讀取物件的起點/終點。

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

類型參數

T

要反序列化的物件類型。

參數

reader
Newtonsoft.Json.JsonReader

有讀者可以閱讀。

read
Func<Newtonsoft.Json.JsonReader,T>

在閱讀時處理。

start
SourcePoint

物件的結果起始點。

end
SourcePoint

物件的結果終點。

傳回

T

被反序列化的物件為類型(T)。

適用於