Expand Default Member Quick Fix
Makes default member calls explicit.
This quick-fix is available for the following inspections:
Applicability
This quick-fix can be applied as a single operation at the following scopes:- Procedure
- Module
- Project
Examples
This example depicts the state of module(s) before and after applying the quick-fix.
Before
Module1 (Any)
Public Sub DoSomething()
Dim values As Dictionary
Set values = New Dictionary
values("Value1") = 42
values("Value2") = 24
Debug.Print values("Value1")
End Sub
After
Module1 (Any)
Public Sub DoSomething()
Dim values As Dictionary
Set values = New Dictionary
values.Item("Value1") = 42
values.Item("Value2") = 24
Debug.Print values.Item("Value1")
End Sub
Rubberduck.CodeAnalysis.QuickFixes.Concrete.ExpandDefaultMemberQuickFix.cs (Prerelease-v2.5.2.6174)