C#-MethodShouldBeDeclaredStaticΒΆ

Instance methods that do not access instance members or other instance methods should be declared static

Required inputs: CSharpAST

Instance Methods that do not use the actual object instance they are invoked with should be made static. In this way the independence from the actual object instance is clearly expressed.

Possible Messages

Key

Text

Severity

Disabled

method_should_be_static

Method could be declared static.

None

False

Options