ObjectMetadata.cs 782 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. namespace LitJson
  4. {
  5. internal struct ObjectMetadata
  6. {
  7. public Type ElementType
  8. {
  9. get
  10. {
  11. if (this.element_type == null)
  12. {
  13. return typeof(JsonData);
  14. }
  15. return this.element_type;
  16. }
  17. set
  18. {
  19. this.element_type = value;
  20. }
  21. }
  22. public bool IsDictionary
  23. {
  24. get
  25. {
  26. return this.is_dictionary;
  27. }
  28. set
  29. {
  30. this.is_dictionary = value;
  31. }
  32. }
  33. public IDictionary<string, PropertyMetadata> Properties
  34. {
  35. get
  36. {
  37. return this.properties;
  38. }
  39. set
  40. {
  41. this.properties = value;
  42. }
  43. }
  44. private Type element_type;
  45. private bool is_dictionary;
  46. private IDictionary<string, PropertyMetadata> properties;
  47. }
  48. }