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 |
The default implementation of the Oxbinder<T> interface. |
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>)
The default implementation of the Oxbinder<T> interface.
public OxBinderImpl(Func<Type, Metadata> getMetadata)
Parameters
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.
public T NewInstance(TextReader reader)
Parameters
- reader
-
Text
Reader
Returns
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 onT
).