0

It is possible to use auto-properties and have some logic in the set?

    public bool IsAwesome 
    { 
        get;
        private set
        {
            ?? = value;
            onIsAwesomeChanged();
        }
    }
AXMIM
  • 2,424
  • 1
  • 20
  • 38

1 Answers1

2

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.

Rahul
  • 76,197
  • 13
  • 71
  • 125