我已经制作了
一个小
代码片段来为
WPF数据绑定创建
一个属性:
private string property;
public string Property
{
get { return this.property; }
set
{
this.property = value;
this.OnPropertyChanged(() => Property);
}
}
在Camel Case中创建字段名称并在Pascal Case中重写属性非常麻烦.有没有办法只写字段,让片段使用字母的名称写入属性,第一个字符是大写?