Telerik® JustCode™ by Progress

The Make Field Readonly quick fix is available once Telerik® JustCode™ has detected that a field can be made readonly (when it is not initialized, initialized only inline or in the constructor). Telerik® JustCode™ underlines the field and suggests you to make it readonly.

Note

Language Support

Supported: C#, VB.NET

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

To make a field readonly

  1. Position the caret over the underlined field.

  2. Press Alt+Enter. From the pop-up menu, select Make field 'field name' readonly

    Make Field Readonly
  3. The result is:

    Make Field Readonly Result

See Also