原代码:
protected bool isOnly;
[CategoryAttribute("基本属性"), DescriptionAttribute("是否唯一")]
public bool IsOnly
{
get { return isOnly; }
set { isOnly = value; }
}
化简后:
[CategoryAttribute("基本属性"), DescriptionAttribute("是否唯一")]
public bool IsOnly { get; set;}