You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
902 B

11 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Web
  5. {
  6. /// <summary>类型 <see cref="ApiAction"/> 的实例转为 <see cref="Json"/> 时的格式。</summary>
  7. [Serializable]
  8. public sealed class ApiActionJsonFormat
  9. {
  10. /// <summary>默认格式。</summary>
  11. public static ApiActionJsonFormat Default { get; set; }
  12. /// <summary>包含参数。</summary>
  13. /// <value>TRUE(默认值)</value>
  14. public bool WithParameters { get; set; }
  15. /// <summary>包含反射信息。</summary>
  16. /// <value>TRUE(默认值)</value>
  17. public bool WithReflection { get; set; }
  18. /// <summary>创建 <see cref="ApiActionJsonFormat"/> 的实例。</summary>
  19. public ApiActionJsonFormat()
  20. {
  21. WithParameters = true;
  22. WithReflection = true;
  23. }
  24. }
  25. }