Telerik® JustCode™ by Progress

The Convert Static Member to Instace quick fix is available once Telerik® JustCode™ has detected that there is no available reference.

Note

Language Support

Supported: C#

Not supported: VB.NET

Not relevant: JavaScript, ASP.NET, XAML, HTML

To convert a static member to an instance

  1. Position the caret over a reference that is not available.
  2. Press Alt+Enter. From the pop-up menu, select Convert static 'the not available reference identifier' to instance

    Convert Static To Instance Selected
  3. The result is:

    Convert Static To Instance Result
Caution

If usages of the static member are found a warning window will be shown

Convert Static To Instance Warning