가끔 사용하게 되는 기능 중에 Template 기능은 항상 헛갈린다. 메모를 해두자 ——— ·미리보기 | 소스복사· using System; using System.Reflection; public class Singleton<T> where T : class { private static object _syncobj = new object(); private static volatile T _instance = null; public static T i{ get { if (_instance == null) { CreateInstance(); } return _instance; } } private static void CreateInstance() { lock (_syncobj)…