csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 1 | using System;
|
| 2 |
|
| 3 | namespace Google.ProtocolBuffers.Serialization
|
| 4 | {
|
| 5 | /// <summary>
|
| 6 | /// Options available for the xml writer output
|
| 7 | /// </summary>
|
| 8 | [Flags]
|
| 9 | public enum XmlWriterOptions
|
| 10 | {
|
| 11 | /// <summary> Simple xml formatting with no attributes </summary>
|
| 12 | None,
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 13 |
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 14 | /// <summary> Writes the 'value' attribute on all enumerations with the numeric identifier </summary>
|
| 15 | OutputEnumValues = 0x1,
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 16 |
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 17 | /// <summary> Embeds array items into child <item> elements </summary>
|
| 18 | OutputNestedArrays = 0x4,
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 19 |
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 20 | /// <summary> Outputs the 'type' attribute for compatibility with the <see cref="System.Runtime.Serialization.Json.JsonReaderWriterFactory">JsonReaderWriterFactory</see> </summary>
|
| 21 | /// <remarks> This option must, by nessessity, also enable NestedArrayItems </remarks>
|
| 22 | OutputJsonTypes = 0x8,
|
| 23 | }
|
| 24 | } |