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)的语法与初始值
此随笔或为自己所写、或为转载于网络。仅用于个人收集及备忘。

浙公网安备 33010602011771号