AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ObjectXMLSerializer<(Of <(<'T>)>)>..::..LoadFromString Method (String)

Loads from string.

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

Syntax


public static T LoadFromString(
	string xml
)

Parameters

xml
Type: String
The XML.

Return Value

T.

Examples


C#
string xml = "<AppConfig><Name>MyApp</Name></AppConfig>";
AppConfig config = ObjectXMLSerializer<AppConfig>.LoadFromString(xml);