I'm looking to fire an event each time a property within my class is SET. I'd like to be able to trigger this same event whenever one of my properties are set. I have (around 12 of them)
I.e.
public class MyClass
{
private int _myHeight;
private int _myWidth;
public int myHeight
{
get { return myHeight; }
set { myHeight = value;
//This fires event!
}
}
public int myWidth
{
get { return myWidth; }
set { myWidth = value;
//This will fire the same event!
}
I'm not new to events themselves, but rather new to creating events. I've always used the 'out of the box' events that are used in windows apps. Any ideas?