Beispiel #1
0
 /// <summary>
 /// 销毁单例
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="singleton"></param>
 public static void Dispose(this ISingleton singleton)
 {
     if (singleton != null)
     {
         singleton.OnDispose();
     }
 }