23种设计模式总结 (转)
摘要:1.单例模式(Singleton Pattern) 定义:Ensure a class has only one instance, and provide a global point of access to it.(确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。) 通用代码
阅读全文
posted @
2018-02-26 17:23
口袋里的SKY
阅读(311)
推荐(0)
[转]内存中堆和栈的区别
摘要:转:https://my.oschina.net/aofe/blog/267882 堆和栈的区别: · 1> 堆空间的内存是动态分配的,一般存放对象,并且需要手动释放内存。需要程序员自己申请并且指明大小,如C语言的malloc函数。 · 2> 栈空间的内存由系统自动分配,一般存放局部变量等,不需要手
阅读全文
posted @
2018-02-23 13:32
口袋里的SKY
阅读(114)
推荐(0)
日志帮助文件 LogHelper
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIMS.RedisMng { using System.Collections.Generic; using System....
阅读全文
posted @
2018-02-07 15:30
口袋里的SKY
阅读(191)
推荐(0)
压缩数据流
摘要:using Hyperion; using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Tex...
阅读全文
posted @
2018-02-07 15:16
口袋里的SKY
阅读(509)
推荐(0)