FastBinaryFormatterAddFastBinaryConverter(Type, IFastBinaryConverter) 方法
为指定类型添加快速二进制转换器实例。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
public static void AddFastBinaryConverter(
Type type,
IFastBinaryConverter converter
)
Public Shared Sub AddFastBinaryConverter (
type As Type,
converter As IFastBinaryConverter
)
static member AddFastBinaryConverter :
type : Type *
converter : IFastBinaryConverter -> unit
参数
- type Type
- 要序列化的Type。
- converter IFastBinaryConverter
- 转换器实例。
注册后,该类型的所有实例都将使用指定的转换器进行序列化。