Click or drag to resize
XmlUtilsSerializeNameValuePairs Method (XmlWriter, DictionaryString, 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.2.0.0 (5.2.17.0403)
Syntax
public static void SerializeNameValuePairs(
	XmlWriter writer,
	Dictionary<string, string> toSerialize,
	bool sortByKey,
	bool wrapValueInCData,
	string elementName
)

Parameters

writer
Type: System.XmlXmlWriter
The writer.
toSerialize
Type: System.Collections.GenericDictionaryString, String
To serialize.
sortByKey
Type: SystemBoolean
if true, the output is sorted by key, ascending
wrapValueInCData
Type: SystemBoolean
if true, the value is placed in a CData block as the value of the element, instead of an attribute 'Value'
elementName
Type: SystemString
Name of the element.
See Also