XmlSerializerImplementation 类

定义

为预生成的类型化序列化程序定义读取器、编写器和方法。Defines the reader, writer, and methods for pre-generated, typed serializers.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class XmlSerializerImplementation abstract
public abstract class XmlSerializerImplementation
type XmlSerializerImplementation = class
Public MustInherit Class XmlSerializerImplementation
继承
XmlSerializerImplementation

注解

若要提高 XML 序列化的性能,可以使用 XML 序列化程序生成器工具 (Sgen.exe) 在序列化之前生成程序集。To improve the performance of XML serialization, you can generate assemblies before serialization using the XML Serializer Generator Tool (Sgen.exe). 加载此类程序集时,将 XmlSerializer 使用接口的属性 XmlSerializerImplementation 来查询包含的序列化程序或序列化程序。When such an assembly is loaded, the XmlSerializer uses the properties of the XmlSerializerImplementation interface to query the contained serializer or serializers.

构造函数

XmlSerializerImplementation()

此 API 支持产品基础结构,不能在代码中直接使用。

初始化 XmlSerializerImplementation 类的新实例。Initializes a new instance of the XmlSerializerImplementation class.

属性

Reader

此 API 支持产品基础结构,不能在代码中直接使用。

获取序列化程序所使用的 XML 读取器对象。Gets the XML reader object that is used by the serializer.

ReadMethods

此 API 支持产品基础结构,不能在代码中直接使用。

获取用于读取数据流的方法的集合。Gets the collection of methods that is used to read a data stream.

TypedSerializers

此 API 支持产品基础结构,不能在代码中直接使用。

获取程序集中的类型化序列化程序的集合。Gets the collection of typed serializers that is found in the assembly.

WriteMethods

此 API 支持产品基础结构,不能在代码中直接使用。

获取用于写入数据流的方法的集合。Gets the collection of methods that is used to write to a data stream.

Writer

此 API 支持产品基础结构,不能在代码中直接使用。

获取序列化程序的 XML 编写器对象。Gets the XML writer object for the serializer.

方法

CanSerialize(Type)

此 API 支持产品基础结构,不能在代码中直接使用。

获取一个值,该值确定某一类型是否可进行序列化。Gets a value that determines whether a type can be serialized.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetSerializer(Type)

此 API 支持产品基础结构,不能在代码中直接使用。

返回指定类型的序列化程序。Returns a serializer for the specified type.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于