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
对象的结果起点。
- end
- SourcePoint
对象的结果终点。
返回
T
将对象反序列化为类型(T)。