OxbinderFactory Class

The factory of the Oxbinder<T> object.

C#
public sealed class OxbinderFactory
Inheritance
OxbinderFactory

Constructors

OxbinderFactory(bool)

Initializes a new instance of the OxbinderFactory class.

Methods

Of<T>()

Creates an Oxbinder<T> object for the specified class.

Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

OxbinderFactory(bool)

Initializes a new instance of the OxbinderFactory class.

C#
public OxbinderFactory([bool ignoreWarnings = false])

Parameters

ignoreWarnings
bool

If the value is true, the Of<T>() ignores warning messages to the annotations of type T. Otherwise, the warning messages are treated as errors, and then the method throws BindException.

Methods Detail

Of<T>()

Creates an Oxbinder<T> object for the specified class.

C#
public Oxbinder<T> Of<T>()

Type Parameters

T
class

The type of the class annotated with ForElementAttribute that stands for the root element.

Returns

The Oxbinder<T> object to create new objects of the specified class with XML streams.

See Also