CrystalXmlDictionaryFormat
Namespace: SnowBank.Data.Xml · enum
Implements: IComparable, ISpanFormattable, IFormattable, IConvertible
Specifies how a dictionary-like member is represented in XML output
Fields
Default
Default = 0
Inherits the setting from the enclosing profile, or from the container's DictionaryFormat
Direct
Direct = 1
Each entry is a nested element named after the key: <scores><math>12</math></scores>
The default for the profile. The key must be a valid XML name (NCName); a key that is not raises at write time.
KeyAttribute
KeyAttribute = 2
Each entry is an element carrying the key in an attribute, and the value as text content: <score key="math">12</score>
KeyValueAttributes
KeyValueAttributes = 3
Each entry is a self-closed element carrying both the key and the value as attributes: <score key="math" value="12" />
KeyValueElements
KeyValueElements = 4
Each entry is an element with nested Key and Value child elements, matching the output produced by DataContractSerializer for dictionaries