I initialize my ThreadLocal with a Factory Func.
I would also like the reset value to return to zero.
Maybe I'm doing something wrong, but if I set my threadLocal.Value = null, it still seems that threadLocal.IsValueCreated == true.
How can I really reset threadlocal so that it lazily regenerates the value when it is requested?
Pedro source
share