FastBinaryFormatterSerializeToBytesT 方法
使用指定的序列化上下文将对象序列化为字节数组。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public static byte[] SerializeToBytes<T>(
in T graph,
FastSerializerContext serializerContext = null
)
Public Shared Function SerializeToBytes(Of T) (
ByRef graph As T,
Optional serializerContext As FastSerializerContext = Nothing
) As Byte()
static member SerializeToBytes :
graph : 'T byref *
?serializerContext : FastSerializerContext
(* Defaults:
let _serializerContext = defaultArg serializerContext null
*)
-> byte[]
- graph T
- 要序列化的对象。
- serializerContext FastSerializerContext (Optional)
- 用于序列化的上下文。
- T
- 要序列化的对象类型。
Byte序列化后的字节数组。