Thursday, June 9, 2016

Auto property initializer easy in C#.net (6.0)

Auto property initializer easy in C#.net (6.0) Example
public class Name
    {
     
        public string FirstName { get; set; } = "ABC";
        public string LastName { get; } = "XYZ";
    }

No comments: