Quantcast
Channel: DevExpress CodeRush Tips and Tricks » Code Analysis
Viewing all articles
Browse latest Browse all 10

Code Issues – Member can be static

$
0
0

Cause:

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.

Sample:

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:


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images