Possible Duplicate:
Why does C# require you to write a null check every time you fire an event?
I see often the following code but somehow don't get it.
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs("UIState"));
Why do i need to check if the event is null before rasing it. All of the time, at least when I try it, I can get away with just raising the event.