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