[Solved] Property returns null using C# expression bodied in construction [closed]
[ad_1] The auto-property is not being initialized with a value, so that’s why you are getting null. It might be important to show the difference between fields and properties. public class Student { // This is a field. It stores the actual data private string name; // This is an auto-property. The actual private field … Read more