昨晚无意中发现的东西,分享给各位使用,google搜索技术方面的东西还是很准确的,可惜被墙了,但是上有政策下有对策……
谷歌地址:
https://www.sssis.com/?gws_rd=ssl
https://github.com/greatfire/wiki
Singleton模式实现方式分析: http://csharpindepth.com/articles/general/singleton.aspx
最佳方式:
public sealed class Singleton
{
private static readonly Lazy<Singleton> lazy =
new Lazy<Singleton>(() => new Singleton());
public static Singleton Instance { get { return lazy.Value; } }
private Singleton()
{
}
}