I might even take that one step further for thread safety and copy it to a local reference first.
protected virtual void OnSortOrderChanged(SortOrderEventArgs e)
{
SortOrderEventHandler so = this.SortOrderChanged;
if (so != null)
{
// Raise the Event
this.SortOrderChanged(this, e);
}
}
Tim
>Thank You!
>
>>ALWAYS check whether anything is actually wired up to consume the event:
>> protected virtual void OnSortOrderChanged(SortOrderEventArgs e)
>> {
>> if (SortOrderChanged != null)
>> SortOrderChanged(this, e);
>> }
Timothy Bryan