[ThreadStatic]在ThreadLocal<T>使用泛型时使用属性定义.为什么选择不同的设计方案?在这种情况下使用泛型over属性有哪些优缺点?
[ThreadStatic]
ThreadLocal<T>
c# generics attributes thread-local threadstatic
attributes ×1
c# ×1
generics ×1
thread-local ×1
threadstatic ×1