Declare and use read write properties in C# Part 3 – Create an instance of the Person class and set values on the object

So finally we’ll create a new instance of the class inside our Main of the TestPerson class. Then we’ll set some values on the object and then increment the property. Time to run the app! Great work Sherlock!

1 min read