SourcePoint.ReadObjectWithSourcePoints<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 对象读取为 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
对象的 result 起始点。
- end
- SourcePoint
对象的 result 终结点。
返回
T
反序列化对象作为类型 (T) 。