Click or drag to resize

XmlHelperXmlValueToObject Method (String, String)

Converts the passed in value to the type with the name typeName. The typeName has to be a known type in .NET, and currently can only be a simple type, or it has to implement an explicit conversion operator which converts a string to the real object. The value is returned as 'object'.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static Object XmlValueToObject(
	string typeName,
	string xmlValue
)

Parameters

typeName
Type: SystemString
name of the type the value should be converted in.
xmlValue
Type: SystemString
value of the xml node which should be converted into an object.

Return Value

Type: Object
the value converted into its native type.
See Also