Inspection Details


Highlights implicit Public access modifiers in user code.
In modern VB (VB.NET), the implicit access modifier is Private, as it is in most other programming languages. Making the Public modifiers explicit can help surface potentially unexpected language defaults.
The following code example(s) would trigger this inspection:

Sub DoSomething()
    ' ...
End Sub

The following code example(s) would not trigger this inspection:

Public Sub DoSomething()
    ' ...
End Sub

Back to List