These kinds of property emulation is usual for programming languages that don't help properties - like conventional C++. In C# there you should generally choose properties as the way in which the best way to access to your fields. MaartenMaarten 23k33 gold badges5151 silver badges6969 bronze badges Increase a comment https://herohomesrealty.in/hero-homes-sector-104-gurgaon-wellness-living-with-urban-connectivity/