ISerializerFormatterTSource, TStateTryDeserialize 方法
尝试将源数据反序列化为目标类型对象。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
bool TryDeserialize(
TState state,
in TSource source,
Type targetType,
out Object target
)
Function TryDeserialize (
state As TState,
ByRef source As TSource,
targetType As Type,
<OutAttribute> ByRef target As Object
) As Boolean
abstract TryDeserialize :
state : 'TState *
source : 'TSource byref *
targetType : Type *
target : Object byref -> bool
- state TState
- 转换器状态。
- source TSource
- 源数据。
- targetType Type
- 目标类型。
- target Object
- 转换后的目标对象。
Boolean操作是否成功。