资源简介

这是DataSet序列化和反序列化以及压缩算法的例子


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using System.xml.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
using System.IO.Compression;

using DocumentFormat.Openxml.Extensions;
using DocumentFormat.Openxml.Spreadsheet;
using DocumentFormat.Openxml.Packaging;
using DocumentFormat.Openxml;

namespace SerializationTest
{
class Program
{
static void Main(string[] args)
{
            string xlfile=@“C:\Users\Ralph\Documents\visual studio 2010\Projects\SerializationTest\data.xlsx“;
            string datafile=@“C:\Users\Ralph\Documents\visual studio 2010\Projects\SerializationTest\data.dat“;

       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-19 22:16  SerializationTest\
     文件        2277  2015-11-19 22:16  SerializationTest\data.dat
     文件         744  2015-11-19 22:16  SerializationTest\data.datz
     文件        9066  2015-11-19 21:42  SerializationTest\Data.xlsx
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\
     文件         893  2015-11-19 21:09  SerializationTest\SerializationTest.sln
     文件       17920  2015-11-19 22:16  SerializationTest\SerializationTest.suo
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\bin\
     目录           0  2015-11-19 21:52  SerializationTest\SerializationTest\bin\Debug\
     文件       68096  2010-07-09 21:10  SerializationTest\SerializationTest\bin\Debug\DocumentFormat.Openxml.Extensions.dll
     文件       52611  2010-07-09 21:10  SerializationTest\SerializationTest\bin\Debug\DocumentFormat.Openxml.Extensions.xml
     文件       10752  2015-11-19 22:16  SerializationTest\SerializationTest\bin\Debug\SerializationTest.exe
     文件       22016  2015-11-19 22:16  SerializationTest\SerializationTest\bin\Debug\SerializationTest.pdb
     文件       11600  2015-11-19 22:16  SerializationTest\SerializationTest\bin\Debug\SerializationTest.vshost.exe
     文件         490  2010-03-17 22:39  SerializationTest\SerializationTest\bin\Debug\SerializationTest.vshost.exe.manifest
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\obj\
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\obj\x86\
     目录           0  2015-11-19 22:16  SerializationTest\SerializationTest\obj\x86\Debug\
     文件        6263  2015-11-19 22:16  SerializationTest\SerializationTest\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         772  2015-11-19 22:16  SerializationTest\SerializationTest\obj\x86\Debug\SerializationTest.csproj.FileListAbsolute.txt
     文件       10752  2015-11-19 22:16  SerializationTest\SerializationTest\obj\x86\Debug\SerializationTest.exe
     文件       22016  2015-11-19 22:16  SerializationTest\SerializationTest\obj\x86\Debug\SerializationTest.pdb
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\obj\x86\Debug\TempPE\
     文件       10975  2015-11-19 22:16  SerializationTest\SerializationTest\Program.cs
     目录           0  2015-11-19 21:09  SerializationTest\SerializationTest\Properties\
     文件        1446  2015-11-19 21:09  SerializationTest\SerializationTest\Properties\AssemblyInfo.cs
     文件        2810  2015-11-19 21:50  SerializationTest\SerializationTest\SerializationTest.csproj

评论

共有 条评论