資源簡介
原LitJson已修改,已支持float數據類型,文件傳輸。不是dll文件,源碼,拖入項目中直接使用,非常簡單,不多做介紹啦。

代碼片段和文件信息
#region?Header
/**
?*?IJsonWrapper.cs
?*???Interface?that?represents?a?type?capable?of?handling?all?kinds?of?JSON
?*???data.?This?is?mainly?used?when?mapping?objects?through?JsonMapper?and
?*???it‘s?implemented?by?JsonData.
?*
?*?The?authors?disclaim?copyright?to?this?source?code.?For?more?details?see
?*?the?COPYING?file?included?with?this?distribution.
?**/
#endregion
using?System.Collections;
using?System.Collections.Specialized;
namespace?LitJson
{
????public?enum?JsonType
????{
????????None
????????object
????????Array
????????String
????????Int
????????Long
????????Float
????????Double
????????Boolean
????}
????public?interface?IJsonWrapper?:?IList?IOrderedDictionary
????{
????????bool?IsArray???{?get;?}
????????bool?IsBoolean?{?get;?}
????????bool?IsDouble?{?get;?}
????????////////////////////////////////////?add?///////////////////////////
????????bool?IsFloat?{?get;?}
????????bool?IsInt?????{?get;?}
????????bool?IsLong????{?get;?}
????????bool?Isobject??{?get;?}
????????bool?IsString??{?get;?}
????????bool?????GetBoolean?();
????????double?GetDouble();
????????////////////////////////////////////?add?///////////////////////////
????????double?GetFloat();
????????int??????GetInt?();
????????JsonType?GetJsonType?();
????????long?????GetLong?();
????????string???GetString?();
????????void?SetBoolean??(bool?val);
????????void?SetDouble(double?val);
????????////////////////////////////////////?add?///////////////////////////
????????void?SetFloat(float?val);
????????void?SetInt??????(int?val);
????????void?SetJsonType?(JsonType?type);
????????void?SetLong?????(long?val);
????????void?SetString???(string?val);
????????string?ToJson?();
????????void???ToJson?(JsonWriter?writer);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-20?10:14??LitJson\
?????文件?????????525??2017-06-12?16:23??LitJson\AssemblyInfo.cs.in
?????文件????????1737??2017-06-12?16:23??LitJson\IJsonWrapper.cs
?????文件?????????181??2017-06-12?16:23??LitJson\JsonAttributes.cs
?????文件???????27234??2017-06-12?16:23??LitJson\JsonData.cs
?????文件????????1487??2017-06-12?16:23??LitJson\JsonException.cs
?????文件???????34578??2017-06-12?16:23??LitJson\JsonMapper.cs
?????文件????????3928??2017-06-12?16:23??LitJson\JsonMockWrapper.cs
?????文件???????14061??2017-06-12?16:23??LitJson\JsonReader.cs
?????文件???????13539??2017-06-12?16:23??LitJson\JsonReaderTest.cs
?????文件???????12223??2017-06-12?16:23??LitJson\JsonWriter.cs
?????文件???????23157??2017-06-12?16:23??LitJson\Lexer.cs
?????文件?????????850??2017-06-12?16:23??LitJson\ParserToken.cs
評論
共有 條評論