Oxbinder<T> Interface

Defines a contract for deserializing XML from a text reader into an object of type T.

C#
public interface Oxbinder<out T>
where T : class

Type Parameters

T
class

The type of the instance to create. This must be a class attributed with ForElementAttribute.

Methods

NewInstance(TextReader)

Creates a new instance from the specified text reader.

Methods Detail

NewInstance(TextReader)

Creates a new instance from the specified text reader.

C#
T NewInstance(TextReader reader)

Parameters

reader
TextReader

The text reader that provides the XML stream.

Returns

T

A new instance corresponding to the XML root element.

Remarks

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