XmlWriterOptions.cs 898 B

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