91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 18KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-06-08
  • 語言: 其他
  • 標(biāo)簽: unity??C#處理json??

資源簡介

從google開源項目LitJson上取出的LitJson源碼。為純cs文件。將其解壓,放到你的項目中即可使用LitJson庫了。例如:unity不支持json的處理,把解壓的文件放到Unity3d的assets中的plugins目錄下,即可在項目中using LitJson了。

資源截圖

代碼片段和文件信息

#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
????????Double
????????Boolean
????}

????public?interface?IJsonWrapper?:?IList?IOrderedDictionary
????{
????????bool?IsArray???{?get;?}
????????bool?IsBoolean?{?get;?}
????????bool?IsDouble??{?get;?}
????????bool?IsInt?????{?get;?}
????????bool?IsLong????{?get;?}
????????bool?Isobject??{?get;?}
????????bool?IsString??{?get;?}

????????bool?????GetBoolean?();
????????double???GetDouble?();
????????int??????GetInt?();
????????JsonType?GetJsonType?();
????????long?????GetLong?();
????????string???GetString?();

????????void?SetBoolean??(bool?val);
????????void?SetDouble???(double?val);
????????void?SetInt??????(int?val);
????????void?SetJsonType?(JsonType?type);
????????void?SetLong?????(long?val);
????????void?SetString???(string?val);

????????string?ToJson?();
????????void???ToJson?(JsonWriter?writer);
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1407??2012-10-16?15:39??LitJson\IJsonWrapper.cs

?????文件??????26586??2012-10-16?15:39??LitJson\JsonData.cs

?????文件???????1487??2012-10-16?15:39??LitJson\JsonException.cs

?????文件??????30861??2012-10-16?15:39??LitJson\JsonMapper.cs

?????文件??????13543??2012-10-16?15:39??LitJson\JsonReader.cs

?????文件??????11650??2012-10-16?15:39??LitJson\JsonWriter.cs

?????文件??????23055??2012-10-16?15:39??LitJson\Lexer.cs

?????文件???????3034??2012-10-16?15:39??LitJson\LitJson.csproj

?????文件????????781??2012-10-16?15:39??LitJson\ParserToken.cs

?????目錄??????????0??2012-10-16?15:21??LitJson

-----------?---------??----------?-----??----

???????????????112404????????????????????10


評論

共有 條評論