Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Diagnostic analyzer for getter only auto props
Diagnostic analyzer for getter only auto props

Diagnostic analyzer for getter only auto props

Streck33

|
176 installs
| (0) | Free
Diagnostic analyzer, that replaces getter only properties backed by a readonly field with a getter only auto property.
Download

This extension contains a diagnostic analyzer that finds getter only properties with backing read-only field and converts them to getter-only auto-properties.

 

The analyzer is applied to code pattern that meet these criteria.

  • There must be a getter only property with a simple return statement
  • The return statement must reference a private readonly field defined in the same type
  • The type of the field must match the type of the property

See the github repository at github.com/ifpanalytics/Ifp.Analyzers for further details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft