XmlHelperXmlValueToObject Method (Type, String) |
Converts the passed in value to the type specified. The realtype 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.4.0.0 (5.4.0)
Syntax public static Object XmlValueToObject(
Type realType,
string xmlValue
)
Public Shared Function XmlValueToObject (
realType As Type,
xmlValue As String
) As Object
Parameters
- realType
- Type: SystemType
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:
Objectthe value converted into its native type.
See Also