SystemTextJsonStringToClassSerializerFormatterTStateTryDeserialize 方法
尝试将字符串反序列化为指定类型的对象。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public bool TryDeserialize(
TState state,
in string source,
Type targetType,
out Object target
)
Public Function TryDeserialize (
state As TState,
ByRef source As String,
targetType As Type,
<OutAttribute> ByRef target As Object
) As Boolean
member TryDeserialize :
state : 'TState *
source : string byref *
targetType : Type *
target : Object byref -> bool
- state TState
- 状态对象。
- source String
- 源字符串。
- targetType Type
- 目标类型。
- target Object
- 反序列化后的对象。
Boolean如果反序列化成功,则为
;否则为
。