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: www.reddit.com...
Blog post: puurunen.ca/20...
Негізгі бет Properties vs. Fields in C#
Пікірлер: 10