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