C# Class XSerializer.JsonSerializer

A factory class that creates instances of the IXSerializer interface.
An instance of the generic JsonSerializer{T} class is returned from each method in this class.
Show file Open project: QuickenLoans/XSerializer

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 JsonSerializer{T} class of type type is returned from this method.

Create ( Type type, IJsonSerializerConfiguration configuration ) : IXSerializer

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

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

Method Details

Create() public static method

Create an instance of IXSerializer for the given type using a default configuration.
An instance of the generic JsonSerializer{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 the specified configuration.
An instance of the generic JsonSerializer{T} class of type type is returned from this method.
public static Create ( Type type, IJsonSerializerConfiguration configuration ) : IXSerializer
type System.Type The type of the object that the serializer will operate on.
configuration IJsonSerializerConfiguration The configuration for the serializer.
return IXSerializer