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)的语法与初始值

posted @ 2016-04-14 08:29  BloggerSb  阅读(291)  评论(0)    收藏  举报