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

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.
nameAttributeName
Type: SystemString
Name of the name attribute.
See Also