資源簡介
通過System.Web.Script.Serialization庫文件操作json的序列化和反序列化
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Windows.Forms;
using?System.Web.script.Serialization;
using?System.IO;
namespace?prat3
{
????//
????///?
????///?定義結構體
????///?
????public?struct?Productsinfo
????{
????????public?string?product_ProdName;
????????public?string?product_ProdDate;
????????public?string?product_BatchNo;
????????public?string?product_ExpDate;
????}
????public?partial?class?Form1?:?Form
????{
????????Productsinfo?productinfo;
????????List?list1?=?new?List();
???????
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
???????
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
???????????
????????}
????????///?
?????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????103??2020-02-21?14:00??新建文件夾\json文件路徑默認放在D盤下.txt
?????文件???????3584??2020-02-21?13:56??新建文件夾\prat3\.vs\prat3\v14\.suo
?????文件????????909??2020-02-21?12:47??新建文件夾\prat3\App.config
?????文件??????11264??2020-02-21?13:54??新建文件夾\prat3\bin\Debug\prat3.exe
?????文件????????909??2020-02-21?12:47??新建文件夾\prat3\bin\Debug\prat3.exe.config
?????文件??????22016??2020-02-21?13:54??新建文件夾\prat3\bin\Debug\prat3.pdb
?????文件??????22696??2020-02-21?13:55??新建文件夾\prat3\bin\Debug\prat3.vshost.exe
?????文件????????909??2020-02-21?12:47??新建文件夾\prat3\bin\Debug\prat3.vshost.exe.config
?????文件????????490??2018-09-15?15:29??新建文件夾\prat3\bin\Debug\prat3.vshost.exe.manifest
?????文件????????122??2020-02-21?12:53??新建文件夾\prat3\bin\Debug\test.txt
?????文件???????4212??2020-02-21?13:54??新建文件夾\prat3\Form1.cs
?????文件???????6687??2020-02-21?12:47??新建文件夾\prat3\Form1.Designer.cs
?????文件???????5817??2020-02-21?12:47??新建文件夾\prat3\Form1.resx
?????文件???????1025??2020-02-21?13:09??新建文件夾\prat3\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7179??2020-02-21?13:55??新建文件夾\prat3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????546??2020-02-21?13:55??新建文件夾\prat3\obj\Debug\prat3.csproj.FileListAbsolute.txt
?????文件????????976??2020-02-21?12:47??新建文件夾\prat3\obj\Debug\prat3.csproj.GenerateResource.Cache
?????文件???????2542??2020-02-21?12:47??新建文件夾\prat3\obj\Debug\prat3.csprojResolveAssemblyReference.cache
?????文件??????11264??2020-02-21?13:54??新建文件夾\prat3\obj\Debug\prat3.exe
?????文件????????180??2020-02-21?12:47??新建文件夾\prat3\obj\Debug\prat3.Form1.resources
?????文件??????22016??2020-02-21?13:54??新建文件夾\prat3\obj\Debug\prat3.pdb
?????文件????????180??2020-02-21?12:47??新建文件夾\prat3\obj\Debug\prat3.Properties.Resources.resources
?????文件??????????0??2020-02-21?09:43??新建文件夾\prat3\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2020-02-21?09:43??新建文件夾\prat3\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2020-02-21?09:43??新建文件夾\prat3\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????5219??2020-02-21?12:47??新建文件夾\prat3\prat3.csproj
?????文件????????479??2020-02-21?12:47??新建文件夾\prat3\prat3.csproj.user
?????文件????????517??2020-02-21?09:43??新建文件夾\prat3\Program.cs
?????文件???????1318??2020-02-21?09:43??新建文件夾\prat3\Properties\AssemblyInfo.cs
?????文件???????2823??2020-02-21?09:43??新建文件夾\prat3\Properties\Resources.Designer.cs
............此處省略20個文件信息
- 上一篇:鼠標點擊調節窗體透明度
- 下一篇:c# 本地日志記錄
評論
共有 條評論