public static LocalPrefsContainer Get(Type t) { // 적절한 타입 찾아서 리턴. LocalPrefsContainer container = null; if (s_dicCategory.TryGetValue(t, out container) == true) { container.Load(); return(container); } return(null); }
/// <summary> /// Preferenece 카테고리 리턴. /// </summary> public static T Get <T>() where T : LocalPrefsContainer { // 적절한 타입 찾아서 리턴. LocalPrefsContainer container = null; if (s_dicCategory.TryGetValue(typeof(T), out container) == true) { container.Load(); return((T)container); } return(null); }