AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ReflectionObjectXMLSerializer..::..SaveToString Method (String, Object, String)

Serialises serializableObject to an XML string, treating its runtime type as reflectionName and probing preferredAssembly first during type resolution.

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

Syntax


public static string SaveToString(
	string reflectionName,
	Object serializableObject,
	string preferredAssembly
)

Parameters

reflectionName
Type: String
Fully qualified type name (for example, Namespace.Type).
serializableObject
Type: Object
The object to serialise.
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 XML representation.