AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ReflectionObjectXMLSerializer..::..LoadFromString Method (String, String, String)

Deserialises an XML payload into an instance of the type identified by reflectionName, probing preferredAssembly first during type resolution.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static Object LoadFromString(
	string reflectionName,
	string xml,
	string preferredAssembly
)

Parameters

reflectionName
Type: String
Fully qualified type name (for example, Namespace.Type).
xml
Type: String
XML payload to deserialise.
preferredAssembly
Type: String
Simple name of the assembly to probe first. Pass the tenant assembly name when known. null or empty skips the preferred-assembly tier.

Return Value

The deserialised object as dynamic.