Visual Studio's code snippet: how to add logic in it?

Viewed 3018

I've made a small code snippet to create a property for WPF data bingings:

private string property;
public string Property
{
    get { return this.property; }
    set
    {
        this.property = value;
        this.OnPropertyChanged(() => Property);
    }
}

It is pretty cumbersome to create the field name in Camel Case and rewrite the property in Pascal Case. Is there a way to only write the field and let the snippet writes the property using the name of the field with the first character in upper case?

1 Answers
Related