Is there a tool that analyses .NET code and finds race conditions?
I have a bit of code that has a public static property that gets or creates a private static field. It also has a public static method that sets this field to null (...yes, I know!..)
As there are no locks around either of these methods, it's a safe bet that things'll go horribly wrong in the future. I need a tool that'll recursively go through things that call either of these methods and see if anything was spawned on another thread.
I'm looking for a tool or perhaps an nDepend SQL script (if this is possible).