Serializer 委托

定义

序列化和反序列化值。

public delegate void Serializer(object raw, ISerializationContext context, Type expected);
public sealed class Serializer
type Serializer = delegate of obj * ISerializationContext * Type -> unit
type Serializer = class
Public Delegate Sub Serializer(raw As Object, context As ISerializationContext, expected As Type)
Public NotInheritable Class Serializer

参数

raw
Object

要序列化的输入对象。

context
ISerializationContext

序列化此对象的上下文。

expected
Type

当前类型在此流中处于活动状态。

适用于