C# Класс XSerializer.XmlSerializer

A factory class that creates instances of the IXSerializer interface.
An instance of the generic XmlSerializer{T} class is returned from each method in this class.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( Type type ) : IXSerializer

Create an instance of IXSerializer for the given type using a default configuration.

An instance of the generic XmlSerializer{T} class of type type is returned from this method.

Create ( Type type, Action setOptions ) : IXSerializer

Create an instance of IXSerializer for the given type using a default configuration.

An instance of the generic XmlSerializer{T} class of type type is returned from this method.

Create ( Type type, XSerializer.XmlSerializationOptions options ) : IXSerializer

Create an instance of IXSerializer for the given type using a default configuration.

An instance of the generic XmlSerializer{T} class of type type is returned from this method.

Приватные методы

Метод Описание
GetSerializationOptions ( Action setOptions ) : XSerializer.XmlSerializationOptions

Описание методов

Create() публичный статический Метод

Create an instance of IXSerializer for the given type using a default configuration.
An instance of the generic XmlSerializer{T} class of type type is returned from this method.
public static Create ( Type type ) : IXSerializer
type System.Type The type of the object that the serializer will operate on.
Результат IXSerializer

Create() публичный статический Метод

Create an instance of IXSerializer for the given type using a default configuration.
An instance of the generic XmlSerializer{T} class of type type is returned from this method.
public static Create ( Type type, Action setOptions ) : IXSerializer
type System.Type The type of the object that the serializer will operate on.
setOptions Action A callback for setting options.
Результат IXSerializer

Create() публичный статический Метод

Create an instance of IXSerializer for the given type using a default configuration.
An instance of the generic XmlSerializer{T} class of type type is returned from this method.
public static Create ( Type type, XSerializer.XmlSerializationOptions options ) : IXSerializer
type System.Type The type of the object that the serializer will operate on.
options XSerializer.XmlSerializationOptions Options.
Результат IXSerializer