问题 I was reading through the tips and tricks post and I thought I'd try out some of the C# stuff that I'd never done before. Therefore, the following code serves no actual purpose, but is just a 'test function' to see what happens. Anyway, I have two static private fields: private static volatile string staticVolatileTestString = ""; [ThreadStatic] private static int threadInt = 0; As you can see, I'm testing ThreadStaticAttribute and the volatile keyword. Anyway, I have a test method that looks