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?
- nDepend, , , linq .
CLinq: https://www.ndepend.com/default-rules/webframe.html
: https://www.ndepend.com/docs/ndepend-console