Best way to automatically detect private variables in cached .net classes?

Using private variables in cache-cache classes is a recipe for strange and often difficult to debug problems.

See for example: http://code-smart.org.uk/information/beware-asp-net-mvc-actionfilterattributes-are-cached-between-requests/

This can lead to mixing / sharing sessions! Typically, these problems are blamed for misconfiguring the output cache.

Can (should?) Resharper detect these problems? Or is there another way?

+6
source share

All Articles