When implemented by a class, converts the xml string from the mapping file to the .NET object.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function StringToObject ( _
	xml As String _
) As Object
C#
Object StringToObject(
	string xml
)
Visual C++
Object^ StringToObject(
	String^ xml
)
JavaScript
function stringToObject(xml);

Parameters

xml
Type: System..::.String
The value of discriminator-value or unsaved-value attribute.

Return Value

The string converted to the object.

Remarks

This method needs to be able to handle any string. It should not just call System.Type.Parse without verifying that it is a parsable value for the System.Type.

See Also