AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomBinder Class Reference
The
CustomBinder class performs the mapping to types declared in this assembly. It accumulates all types defined in the assembly this class is defined in. Optionally, an assembly can be passed as an argument.
More...
List of all members.
|
Public Member Functions |
| override Type | BindToType (string assemblyName, string typeName) |
| | Binds the passed typename to the type contained in the dictionary.
|
Detailed Description
The
CustomBinder class performs the mapping to types declared in this assembly. It accumulates all types defined in the assembly this class is defined in. Optionally, an assembly can be passed as an argument.
Member Function Documentation
| override Type AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomBinder.BindToType |
( |
string |
assemblyName, |
|
|
string |
typeName | |
|
) |
| | |
Binds the passed typename to the type contained in the dictionary.
- Parameters:
-
| assemblyName | The assembly to load the type from. |
| typeName | The simple name of the type. |
When the passed type is not found in the assembly, the method will try to get the Type using System.GetType. If still not found, the method will return typeof (Object).
- Returns:
- The Type reference of the type name.
The documentation for this class was generated from the following file:
- Serialization/Formatters/Xml/XmlFormatter.cs