#Net5 - C#9 "records" and "deconstruction" super cool feature 🆒🆒🆒
#Net5 – C#9 “records” and “deconstruction” super cool feature 🆒🆒🆒
Hi ! I’m still learning about C#9, and there is a lot to learn about records. And, between all this information, I Just learn a super cool feature related to records: deconstruction. Let’s start with a simple record definition for a pet. This one includes pet’s name and pet’s age: public record Pet { public string Name { get; init; } public int Age { get; init; } public Pet(string name, int…
View On WordPress













