日期:2012-01-17  浏览次数:20362 次

using System;
using System.Collections ;
using System.IO ;
using System.Diagnostics ;
using System.Security.Cryptography ;

namespace Bigeagle.Util
{
    /// <summary>
    /// 配置文件类,最终类
    /// </summary>
    public sealed class Ini
    {
        /// <summary>
        /// 配置文件路径
        /// </summary>
        private string m_strIniFilePath ;

        /// <summary>
        /// 是否已经初始化
        /// </summary>
        private bool m_bIsLoad ;

        /// <summary>
        /// 属性值数组
        /// </summary>
        private ArrayList m_arrProperties ;


        /// <summary>
        /// 配置文件路径
        /// </summary>
        public string IniFilePath
        {
            get
            {
                return m_strIniFilePath ;
            }
            set
            {
                m_strIniFilePath = value ;
            }
        }//end method

        

        /// <summary>
        /// 构造函数
        /// </summary>
        public Ini()
        {
            m_strIniFilePath = "" ;
            m_bIsLoad = false ;
            m_arrProperties = new ArrayList() ;
        }//end method

        /// <summary>
        /// 重载构造函数
        /// </summary>
        /// <param name="a_strIniFilePath">配置文件路径</param>
        public Ini(string a_strIniFilePath)
        {
            m_strIniFilePath = a_strIniFilePath ;
            m_bIsLoad = false ;
            m_arrProperties = new