As far as I know events are fired by invoking a method.
Is it possible that events are fired if a boolean property changes its
value?
Thanks
Ferdinand
Ferdinand,
Events can be fired for any reason whatsoever. It is up to the defining
class to indicate when events should be fired.
There is nothing that says you can't fire an event if a property changes
it's value.
If you want to do this, you should look into the INotifyPropertyChanged
interface, as it defines a standard event that is used to indicate when a
property changes.
Hope this helps.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> As far as I know events are fired by invoking a method.
> Is it possible that events are fired if a boolean property changes its
> value?
>
> Thanks
> Ferdinand
Bruce Wood - 15 Dec 2005 17:42 GMT
Very interesting. Does this mean that MS is abandoning the
public xxxx MyProperty ...
public event yyyy MyPropertyChanged;
protected void OnMyPropertyChanged() ...
pattern in favour of this new INotifyPropertyChanged interface?
> Ferdinand,
>
[quoted text clipped - 20 lines]
> > Thanks
> > Ferdinand
Nicholas Paldino [.NET/C# MVP] - 15 Dec 2005 18:22 GMT
Bruce,
It's not abandoning it. However, it does prefer that you use that, as
it offers a performance gain (you don't have a gazillion delegates to hook
up to to detect property changes).
WPF is going to take advantage of this as well.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Very interesting. Does this mean that MS is abandoning the
>
[quoted text clipped - 33 lines]
>> > Thanks
>> > Ferdinand