I want to do something like this:
class Foo
{
bool Property
{
get;
set
{
notifySomethingOfTheChange();
// What should I put here to set the value?
}
}
}
Is there anything I can put there to set the value? Or will I have to explicitly define the get
and add another field to the class?