In c#, I can do this:
public int Foo { get; set; }
Which is nice. But as soon as I want to do anything in the getter or setter, I have to chang
As others have said, there is no builtin way to do this.
You could achieve something kind of similar with PostSharp. But I'm not sure its worth the effort.
[AfterSet(DoSomething)] public int Foo { get; set; }