Inspection Details

ImplicitDefaultMemberAssignment


Summary
Identifies implicit default member calls.
Reasoning
Code should do what it says, and say what it does. Implicit default member calls generally do the opposite of that.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    ActiveSheet.Range("A1") = 42 ' implicit assignment to 'Range.[_default]'.
End Sub

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

Public Sub DoSomething()
    ActiveSheet.Range("A1").Value = 42
End Sub


Back to List