FastBinaryFormatterAddFastBinaryConverter(Type, IFastBinaryConverter) 方法
为指定类型添加快速二进制转换器实例。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
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
- 转换器实例。
注册后,该类型的所有实例都将使用指定的转换器进行序列化。