OxBinderImpl<T> Class
The default implementation of the Oxbinder<T> interface.
public sealed class OxBinderImpl<T> : Oxbinder<T>
where T : class
Type Parameters
- T
-
class
The type of the instance to create.
- Inheritance
-
Ox
Binder Impl<T>
- Implements
Constructors
Ox |
Initializes a new instance of the OxBinderImpl<T> class. |
Methods
New |
Description copied from interface: Oxbinder
|
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.
public OxBinderImpl(Func<Type, Metadata> getMetadata)
Parameters
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.
public T NewInstance(TextReader reader)
Parameters
- reader
-
Text
Reader
Returns
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.