Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TypeMapper.ToType Method

Convert from a string to a type. Will look into the IdTypeMapping dictionary first to resolve the type, then check if it is the well known typeId of 'Hashtable' followed by a strategy to resolve a fully qualfied name from a simple type name. This strategy requires that

[Visual Basic]
Public NotOverridable Sub ToType( _
   ByVal typeId As String _
) _
    Implements ITypeMapper.ToType
[C#]
public Type ToType(
   string typeId
);

Parameters

typeId
The type id.

Return Value

The type associated with the string.

Implements

ITypeMapper.ToType

Exceptions

Exception Type Condition
TypeLoadException If the type can not be resolved.

See Also

TypeMapper Class | Spring.Messaging.Nms.Support.Converter Namespace