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>)

The default implementation of the Oxbinder<T> interface.

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>)

The default implementation of the Oxbinder<T> interface.

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

Parameters

getMetadata
Func<Type, Metadata>

The function that returns the Metadata object for the specified type.

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 corresponding to the XML root element.

Implements

Remarks

Description copied from interface: Oxbinder

The XML document must have a root element that matches type T (i.e., the element name and namespace must correspond to the ForElementAttribute on T).