Telerik® JustCode™ by Progress

Telerik® JustCode™ can suggest some property conversions listed below.

Note

Language Support

Supported: C#

Not supported: VB.NET, JavaScript, ASP.NET, XAML, HTML

The behavior can be controlled in JustCode Options - JustCode / Options / Code Analysis / Hints.

When "Show hint for convert property with backing field to auto-implemented property" option is checked in the options dialog, then Telerik® JustCode™ suggests you to convert a property with backing field to an auto-implemented property.

  1. Position the caret over a property with a backing field.
  2. Press Alt+Enter. From the pop-up menu, select Convert to auto-implemented property.

    Quick Hints Convert To Auto Implemented Property
  3. The result is:

    Quick Hints Convert To Auto Implemented Property Result

When "Show hint for convert auto-implemented property to property with backing field" option is checked in the options dialog, then Telerik® JustCode™ suggests you to convert an auto-implemented property to a property with backing field.

  1. Position the caret over an auto-implemented property.
  2. Press Alt+Enter. From the pop-up menu, select Convert to property with backing field.

    Quick Hints Convert To Property With Backing Field
  3. Select the backing field's identifier from the suggested list or type a different one

  4. The result is:

    Quick Hints Convert To Property With Backing Field Result

When "Show hint for convert auto-implemented property to dependency property" option is checked in the options dialog, then Telerik® JustCode™ suggests you to convert an auto-implemented property to a dependency property. Note that your class must be an inheritor of the System.Windows.DependencyObject class.

  1. Position the caret over an auto-implemented property.
  2. Press Alt+Enter. From the pop-up menu, select Convert to dependency property.

    Quick Hints Convert To Dependency Property
  3. The result is:

    Quick Hints Convert To Dependency Property Result

See Also