The requested page is not available for the requested platform. You are viewing the content for Default platform.

Remove Redundant Qualifier (remove all)

Removes redundant this or base qualifiers within the current file.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is on a redundant this or base qualifier, provided that the current file contains several occurrences of this qualifier.

Examples

private string MethodName(int i)
{
    return String.Format("i = {0}",i);
}
private void Test()
{
    string str = this.MethodName(15);
}
Private Function MethodName(ByVal i As Integer) As String
    Return String.Format("i = {0}", i)
End Function
Private Sub Test()
    Dim str As String = Me.MethodName(15)
End Sub

Result:

private string MethodName(int i)
{
    return String.Format("i = {0}",i);
}
private void Test()
{
    string str = MethodName(15);
}
Private Function MethodName(ByVal i As Integer) As String
    Return String.Format("i = {0}", i)
End Function
Private Sub Test()
    Dim str As String = MethodName(15)
End Sub
See Also