コード例 #1
0
 public static T Get <T>(this ThreadLocal <T> t)
 {
     return(t.Value);
 }
コード例 #2
0
 public static void Remove <T>(this ThreadLocal <T> t)
 {
     t.Dispose();
 }
コード例 #3
0
 public static void Set <T>(this ThreadLocal <T> t, T val)
 {
     t.Value = val;
 }