I am writing a general class where I need to use Interlocked.
T test1, test2;
Interlocked.Exchange<T>(ref test1, test2);
This will not compile. So am I forced to use Exchange (Object, Object) instead of using MSDN advice to not use it that way?
source
share