I have some code I would like to simplify. Here is the code:
private int id;
public int Id
{
get { return id; }
set
{
id = value;
base.OnPropertyChanged("Id");
}
}
I was thinking using an Attribute to only get:
[RaiseOnPropertyChanged()]
public int Id { get; set; }
How can that be done? Or can it be done using an attribute?