We have a coding standard that says all shared (static) fields and methods must be called with the class name. E.g.
NameOfClass.whatever
Rather then
whatever
Is there a tool that we can use to check this is in fact the case? (Likewise for modules)
Sorry I should have make it clearer we are using VB.NET.
This is a bigger example of what I mean.
Public Class Class1
Public Shared Sub SharedMethod()
End Sub
Public Shared sharedField As Integer
Public Sub NotSharedMethod()
'this next line shold be written as Class1.SharedMethod
SharedMethod()
'this next line shold be written as Class1.sharedField
sharedField = 5
End Sub
End Class