CommunityToolkit / dotnet

.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
https://docs.microsoft.com/dotnet/communitytoolkit/?WT.mc_id=dotnet-0000-bramin
Other
3.07k stars 299 forks source link

Code Fixer for MVVMTK0034 (do not reference backing field directly) #577

Closed 333fred closed 1 year ago

333fred commented 1 year ago

Overview

I have a number of places in my code where I'm reading from a backing field. This is generally fine, but I can understand the desire to have everything use the property. However, I'm going to be disabling this warning because I'm not going through and manually fixing up 76 warnings on correct code. I would love to see a fixer for this warning so I can re-enable it and fix it all at once.

Breaking change?

No

Alternatives

Doing nothing.

Additional context

I can certainly help point at resources and code fixer implementation questions, sergio knows where to find me.

Help us help you

No, just wanted to propose this