dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.18k stars 5.84k forks source link

Missing example #30763

Closed jwerner77 closed 1 year ago

jwerner77 commented 1 year ago

In the following paragraph it says: _It's a bad programming style to change the state of the object by using the get accessor. For example, the following accessor produces the side effect of changing the state of the object every time that the number field is accessed. "the following accessor" refers to an example that is not there


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BillWagner commented 1 year ago

Thanks for noting that @jwerner77

We removed that sample because we found that people were copying it, even though it's not recommended. We should remove the reference to the code example.

I've added the "Help wanted" label in case anyone wants to make the change before we update this.