Click or drag to resize

XmlUtils.SerializeNameValuePairs Method (XmlWriter, Dictionary<String, String>, Boolean, Boolean, String)

Serializes the name value pairs passed in to the writer passed in in elements of the name elementName. By default, the key is written as attribute 'Name' and the value is written as attribute 'Value'.

Namespace:  SD.LLBLGen.Pro.Core.Xml
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static void SerializeNameValuePairs(
	XmlWriter writer,
	Dictionary<string, string> toSerialize,
	bool sortByKey,
	bool wrapValueInCData,
	string elementName
)

Parameters

writer
Type: System.Xml.XmlWriter
The writer.
toSerialize
Type: System.Collections.Generic.Dictionary<String, String>
To serialize.
sortByKey
Type: System.Boolean
if true, the output is sorted by key, ascending
wrapValueInCData
Type: System.Boolean
if true, the value is placed in a CData block as the value of the element, instead of an attribute 'Value'
elementName
Type: System.String
Name of the element.
See Also