title: Best way to automatically detect private variables in cached .net classes?
body: <p>Using private variables in cached .net classes is a recipe for strange and often hard to debug problems.</p>
  
  <p>See for instance: <a href="http://code-smart.org.uk/information/beware-asp-net-mvc-actionfilterattributes-are-cached-between-requests/" rel="noreferrer">http://code-smart.org.uk/information/beware-asp-net-mvc-actionfilterattributes-are-cached-between-requests/</a></p>
  
  <p>This can leed to session mixups/swapping! Usually these problems are blamed on not setting the output cache correctly.</p>
  
  <p>Can (should?) Resharper detect these problems? Or is there another way?</p>