FastBinaryFormatterDeserializeT(Byte, FastSerializerContext) 方法
从字节数组中反序列化对象。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public static T Deserialize<T>(
byte[] bytes,
FastSerializerContext serializerContext = null
)
Public Shared Function Deserialize(Of T) (
bytes As Byte(),
Optional serializerContext As FastSerializerContext = Nothing
) As T
static member Deserialize :
bytes : byte[] *
?serializerContext : FastSerializerContext
(* Defaults:
let _serializerContext = defaultArg serializerContext null
*)
-> 'T
- bytes Byte
- 包含序列化数据的字节数组。
- serializerContext FastSerializerContext (Optional)
- 序列化上下文,为 时使用默认上下文。
- T
- 要反序列化的对象类型。
T反序列化的对象实例。