コード例 #1
0
        public static T GetObject <T>(this Thread key)
        {
            object g_pState = ThreadUtils.GetObject(key);

            if (g_pState == null)
            {
                return(default(T));
            }
            return((T)g_pState);
        }
コード例 #2
0
        public static T GetObject <T>()
        {
            Thread g_pThread = Thread.CurrentThread;

            return(ThreadUtils.GetObject <T>(g_pThread));
        }
コード例 #3
0
        public static object GetObject()
        {
            Thread g_pThread = Thread.CurrentThread;

            return(ThreadUtils.GetObject(g_pThread));
        }