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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object StringToObject(
	string xml
)
Visual Basic
Function StringToObject ( _
	xml As String _
) As Object
Visual C++
Object^ StringToObject(
	String^ 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