Oxbinder<T> Interface

Provides a way to create new instances from text readers.

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

Type Parameters

T
class

The type of the instance to create.

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.

Remarks

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.