It is possible to use auto-properties and have some logic in the set?
public bool IsAwesome
{
get;
private set
{
?? = value;
onIsAwesomeChanged();
}
}
It is possible to use auto-properties and have some logic in the set?
public bool IsAwesome
{
get;
private set
{
?? = value;
onIsAwesomeChanged();
}
}
NO, then it's no more a auto-property
. If you have the posted code and try compiling you will get compiler error saying you must declare body for get
accessor.