• 大小: 1.82M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-06-15
  • 语言: C#
  • 标签: 250  25  00  设备  源码  

资源简介

C#常用源码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;

namespace WHC.OrderWater.Commons
{
    /// 
    /// 全局统一的缓存类
    /// 

    public class Cache
    {
        private SortedDictionaryject> dic = new SortedDictionaryject>();
        private static volatile Cache instance = null;
        private static object lockHelper = new object();

        private Cache()
        {

        }
        public void Add(string key object value)
        {
            dic.Add(key value);
        }
        public void Remove(string key)
        {
            dic.Remove(key);
        }

        public object this[string index]
        {
            get
            {
                if (dic.ContainsKey(index))
                    return dic[index];
                else
                    return null;
            }
            set { dic[index] = value; }
        }

        public static Cache Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (lockHelper)
                    {
                        if (instance == null)
                        {
                            instance = new Cache();
                        }
                    }
                }
                return instance;
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     270336  2010-06-21 17:59  WHC.OrderWater.Commons\bin\Debug\log4net.dll

     文件    1276720  2012-02-18 09:44  WHC.OrderWater.Commons\bin\Debug\Microsoft.Office.Interop.Excel.dll

     文件     416544  2012-02-18 09:44  WHC.OrderWater.Commons\bin\Debug\Office.dll

     文件     590336  2012-03-07 14:02  WHC.OrderWater.Commons\bin\Debug\WHC.OrderWater.Commons.dll

     文件    1582592  2012-03-07 14:02  WHC.OrderWater.Commons\bin\Debug\WHC.OrderWater.Commons.pdb

     文件     740278  2012-03-07 14:02  WHC.OrderWater.Commons\bin\Debug\WHC.OrderWater.Commons.xml

     文件       1438  2010-08-10 09:59  WHC.OrderWater.Commons\Cache.cs

     文件      20106  2011-07-12 21:08  WHC.OrderWater.Commons\CCalendar.cs

     文件      13409  2010-07-19 11:30  WHC.OrderWater.Commons\CCalendarData.xml

     文件       5918  2010-07-21 09:32  WHC.OrderWater.Commons\ChineseCalendar.cs

     文件        991  2011-07-07 22:00  WHC.OrderWater.Commons\ClassDiagram1.cd

     文件      15387  2012-03-06 17:37  WHC.OrderWater.Commons\Collections\Dictionary.cs

     文件        550  2010-08-31 10:50  WHC.OrderWater.Commons\Collections\ICloneable.cs

     文件       5515  2010-08-31 10:50  WHC.OrderWater.Commons\Collections\List.cs

     文件      27402  2010-08-31 10:47  WHC.OrderWater.Commons\Collections\OrderedDictionary.cs

     文件       6677  2010-08-31 10:47  WHC.OrderWater.Commons\Collections\OrderedDictionaryEnumerator.cs

     文件       5257  2011-07-12 21:27  WHC.OrderWater.Commons\Collections\SortHelper.cs

     文件      13635  2010-08-31 10:49  WHC.OrderWater.Commons\Collections\SyncDictionary.cs

     文件      43919  2010-08-31 10:47  WHC.OrderWater.Commons\Collections\SyncList.cs

     文件      13529  2010-08-31 10:47  WHC.OrderWater.Commons\Collections\SyncOrderedDictionary.cs

     文件       7370  2011-06-21 09:26  WHC.OrderWater.Commons\Collections\ThreadSafeDictionary.cs

     文件       5328  2011-06-21 09:22  WHC.OrderWater.Commons\Collections\ThreadSafeSortedList.cs

     文件       6716  2010-08-06 09:22  WHC.OrderWater.Commons\CommandLine.cs

     文件      23578  2011-06-26 11:22  WHC.OrderWater.Commons\CRegex.cs

     文件      14714  2010-10-09 14:36  WHC.OrderWater.Commons\CSocket.cs

     文件      16301  2011-07-04 20:33  WHC.OrderWater.Commons\CString.cs

     文件      31508  2012-03-07 14:33  WHC.OrderWater.Commons\CText.cs

     文件       2156  2010-07-19 11:30  WHC.OrderWater.Commons\CultureInfoUtil.cs

     文件      13428  2010-12-08 15:21  WHC.OrderWater.Commons\Database\DataTableHelper.cs

     文件       9767  2011-07-07 21:47  WHC.OrderWater.Commons\Database\JetAccessUtil.cs

............此处省略165个文件信息

评论

共有 条评论