コード例 #1
0
ファイル: LocalPrefs.cs プロジェクト: synsayer/synsayer
    public static LocalPrefsContainer Get(Type t)
    {
        // 적절한 타입 찾아서 리턴.
        LocalPrefsContainer container = null;

        if (s_dicCategory.TryGetValue(t, out container) == true)
        {
            container.Load();
            return(container);
        }

        return(null);
    }
コード例 #2
0
ファイル: LocalPrefs.cs プロジェクト: synsayer/synsayer
    /// <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);
    }