Skip to main content

Make Member Non-static

Makes a static member an instance member, and updates all references accordingly.

#Availability

Available from the context menu or via shortcuts:

  • when the cursor is on a static method declaration.

#Notes

#Examples

public static int TestMethod(int a, int b)
{
    return a * (b + a);
}
Public Shared Function TestMethod(ByVal a As Integer, ByVal b As Integer) As Integer
    Return a * (b + a)
End Function

Result:

public int TestMethod(int a, int b)
{
    return a * (b + a);
}
Public Function TestMethod(ByVal a As Integer, ByVal b As Integer) As Integer
    Return a * (b + a)
End Function

#Screenshot

rsMakeMemberNonStatic