IJsonWrapper.cs 798 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Specialized;
  4. namespace LitJson
  5. {
  6. public interface IJsonWrapper : IList, IOrderedDictionary, IEnumerable, ICollection, IDictionary
  7. {
  8. bool IsArray { get; }
  9. bool IsBoolean { get; }
  10. bool IsDouble { get; }
  11. bool IsInt { get; }
  12. bool IsLong { get; }
  13. bool IsObject { get; }
  14. bool IsString { get; }
  15. bool GetBoolean();
  16. double GetDouble();
  17. int GetInt();
  18. JsonType GetJsonType();
  19. long GetLong();
  20. string GetString();
  21. void SetBoolean(bool val);
  22. void SetDouble(double val);
  23. void SetInt(int val);
  24. void SetJsonType(JsonType type);
  25. void SetLong(long val);
  26. void SetString(string val);
  27. string ToJson();
  28. void ToJson(JsonWriter writer);
  29. }
  30. }