Make Member Non-static
In This Article
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
- This refactoring is the opposite of Make Member Static.
#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