面试题2 单例

 1 public sealed class Singleton
 2 {
 3     private Singleton()
 4     {
 5 
 6     }
 7 
 8     private static Singleton instance = new Singleton();
 9 
10     public static Singleton Instance
11     {
12         get
13         {
14             return instance;
15         }
16     }
17 };
原文地址:https://www.cnblogs.com/wanderingzj/p/5351741.html