AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ObjectXMLSerializer<(Of <(<'T>)>)>..::..Load Method (String, array<Type>[]()[][])

Loads an object from an XML file in Document format, supplying extra data types to enable deserialization of custom types within the object.

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

Syntax


public static T Load(
	string path,
	Type[] extraTypes
)

Parameters

path
Type: String
Path of the file to load the object from.
extraTypes
Type: array<Type>[]()[][]
Extra data types to enable deserialization of custom types within the object.

Return Value

Object loaded from an XML file in Document format.

Examples


C#
serializableObject = ObjectXMLSerializer<SerializableObject>.Load(@"C:\XMLObjects.xml", new Type[] { typeof(MyCustomType) });