Inspection Details

IndexedDefaultMemberAccess


Summary
Identifies the use of indexed default member accesses.
Reasoning
An indexed default member access hides away the actually called member.
The following code example(s) would trigger this inspection:

Public Sub DoSomething(ByVal coll As Collection)
    Dim bar As Variant
    bar = coll(23)
End Sub

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

Public Sub DoSomething(ByVal coll As Collection)
    Dim bar As Variant
    bar = coll.Item(23)
End Sub


Back to List