C# 6.0的属性(Property)的语法与初始值

   public class ToolLocation
    {
        public short ToolLocation_nbr { get; set; } = 1;

        public string LocationName { get; set; } = string.Empty;

        public string Description { get; set; } = string.Empty;

        public bool IsActive { get; set; } = true;
    }

https://blog.csdn.net/weixin_34163741/article/details/86337208    C# 6.0的属性(Property)的语法与初始值

原文地址:https://www.cnblogs.com/shy1766IT/p/5389747.html