OxBinderImpl<T> Class

The default implementation of the Oxbinder<T> interface.

C#
public sealed class OxBinderImpl<T> : Oxbinder<T>
where T : class

Type Parameters

T
class

The type of the instance to create.

Inheritance
OxBinderImpl<T>
Implements

Constructors

OxBinderImpl(Func<Type, Metadata>)

Initializes a new instance of the OxBinderImpl<T> class.

Methods

NewInstance(TextReader)

Description copied from interface: Oxbinder

Creates a new instance from the specified text reader.

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

Constructors Detail

OxBinderImpl(Func<Type, Metadata>)

Initializes a new instance of the OxBinderImpl<T> class.

C#
public OxBinderImpl(Func<Type, Metadata> getMetadata)

Parameters

getMetadata
Func<Type, Metadata>

The function that returns the Metadata associated with the specified class.

Methods Detail

NewInstance(TextReader)

Description copied from interface: Oxbinder

Creates a new instance from the specified text reader.

C#
public T NewInstance(TextReader reader)

Parameters

reader
TextReader

Returns

T

Description copied from interface: Oxbinder

A new instance.

Implements

Remarks

Description copied from interface: Oxbinder

This method throws BindException if there are invalid annotations in the class representing the XML root element (that was specified with OxbinderFactory.Of<T>() when this Oxbinder was created), or in the classes representing the descendants of that root element.