点击或拖拽改变大小

JsonSerializerToObjectT 方法 (StreamReader, JsonDeserializeOption)

注意:此 API 现在已过时。

Deserializes JSON from the StreamReader

命名空间:  CPF.Windows.Json
程序集:  CPF.Windows (在 CPF.Windows.dll 中) 版本:0.8.8.5
语法
C#
[ObsoleteAttribute("Current convection processing does not achieve the meaning of the stream itself. Errors occur when the length of the deserialized character exceeds the length of StreamReader's charBuffer. This method will be revised in the next version.", 
	false)]
public static T ToObject<T>(
	StreamReader streamReader,
	JsonDeserializeOption option = null
)

参数

streamReader
类型:System.IOStreamReader
Stream
option (Optional)
类型:CPF.Windows.JsonJsonDeserializeOption
Json Deserialize Option

类型参数

T
Types converted

返回值

类型:T
Object
参见