Home > Code Analysis > Code Issues – Member can be static

Code Issues – Member can be static

October 18th, 2012


Static members are part of a type and non-static members are part of an instance of that type. If you want to have a shared state or a function between different instances of the same type, a static member will be helpful. This code issue informs you about an instance member that can be converted into a static member.


CodeRush Member Can Be Static Sample

How to Fix:

CodeRush Make Member Static Fix

Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Oct/18/2012
ID: C204

Similar Posts: