Properties vs. Fields in C#

Описание к видео Properties vs. Fields in C#

Why use an auto-property over a property with a backing field? What makes a property different from a public field? In this video I attempt to explain both and pull back the covers on how .NET code gets compiled.

Original Reddit post: https://www.reddit.com/r/csharp/comme...
Blog post: https://puurunen.ca/2020/04/17/proper...

Комментарии

Информация по комментариям в разработке