C# Class 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.
Show file Open project: QuickenLoans/XSerializer Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
GetSerializationOptions ( Action setOptions ) : XSerializer.XmlSerializationOptions

Method Details

Create() public static method

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.
return IXSerializer

Create() public static method

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.
return IXSerializer

Create() public static method

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.
return IXSerializer