示例#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;
 }