当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 使用 SharpZipLib 进行压缩的辅助类,简化压缩字节数组和字符串的操作。
 

 

    摘要: 关键引用空间:system.directoryservices,system.management 说明:form上有一个treeview1,button1 代码如下: private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.cli......
 ·vb.net与xml的操作    »显示摘要«
    摘要: 内容:.net与xml的小软件(100多行左右)注意:如果转贴,请一定注明出处,以及作者//=================================开始===============//======================准备工作===========================  再建立项目的文件夹的bin文件夹下 创建两个文件 一个是"myxml.xm......


CompressionHelperClassusingSharpZipLib

【程序编程相关:.Net正式版中的一些Bug及其解决方案

使用 sharpziplib 进行压缩的辅助类,简化压缩字节数组与字符串的操作. 【推荐阅读:精彩推荐:.Net编程的十个技巧

【扩展信息:.NET框架类库(上)

using system;

using system.text;

using system.io;

using icsharpcode.sharpziplib.bzip2;

using icsharpcode.sharpziplib.gzip;

using icsharpcode.sharpziplib.zip;

 

namespace compression

{

    /// <summary>

    /// 压缩方式.

    /// </summary>

    public enum compressiontype

    {

        gzip,

        bzip2,

        zip

    }

 

    /// <summary>

    /// 使用 sharpziplib 进行压缩的辅助类,简化压缩字节数组与字符串的操作.

    /// </summary>

    public class compressionhelper

    {

        /// <summary>

        /// 压缩供应者,默认为 gzip.

        /// </summary>

        public static compressiontype compressionprovider = compressiontype.gzip;

 

        #region public methods

 

        /// <summary>

        /// 从原始字节数组生成已压缩的字节数组.
...   下一页
    摘要: 使用xmltextreader对xml文件进行简单的以对象形式的读取和写入操作baseserializeelement-------------------------------------------------------------using system;using system.xml;using system.collections;namespace local......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE