DataContractJsonSerializerSettings.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace System.Runtime.Serialization.Json
  5. {
  6. using System.Collections.Generic;
  7. using System.Xml;
  8. /// <summary>
  9. /// Dummy documentation
  10. /// </summary>
  11. public class DataContractJsonSerializerSettings
  12. {
  13. private int maxItemsInObjectGraph = int.MaxValue;
  14. /// <summary>
  15. /// Gets or sets Dummy documentation
  16. /// </summary>
  17. public string RootName { get; set; }
  18. /// <summary>
  19. /// Gets or sets Dummy documentation
  20. /// </summary>
  21. public IEnumerable<Type> KnownTypes { get; set; }
  22. /// <summary>
  23. /// Gets or sets Dummy documentation
  24. /// </summary>
  25. public int MaxItemsInObjectGraph
  26. {
  27. get
  28. {
  29. return this.maxItemsInObjectGraph;
  30. }
  31. set
  32. {
  33. this.maxItemsInObjectGraph = value;
  34. }
  35. }
  36. /// <summary>
  37. /// Gets or sets a value indicating whether Dummy documentation
  38. /// </summary>
  39. public bool IgnoreExtensionDataObject { get; set; }
  40. /// <summary>
  41. /// Gets or sets Dummy documentation
  42. /// </summary>
  43. public IDataContractSurrogate DataContractSurrogate { get; set; }
  44. /// <summary>
  45. /// Gets or sets Dummy documentation
  46. /// </summary>
  47. public EmitTypeInformation EmitTypeInformation { get; set; }
  48. /// <summary>
  49. /// Gets or sets Dummy documentation
  50. /// </summary>
  51. public DateTimeFormat DateTimeFormat { get; set; }
  52. /// <summary>
  53. /// Gets or sets a value indicating whether Dummy documentation
  54. /// </summary>
  55. public bool SerializeReadOnlyTypes { get; set; }
  56. /// <summary>
  57. /// Gets or sets a value indicating whether Dummy documentation
  58. /// </summary>
  59. public bool UseSimpleDictionaryFormat { get; set; }
  60. }
  61. }