Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/14/10 01:57:07 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • replaced new EventArgs() by EventArgs.Empty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.2/NotificationDictionary.cs

    r2790 r2793  
    4848    protected virtual void OnBeforeInsert() {
    4949      if (BeforeInsertEvent != null)
    50         BeforeInsertEvent(this, new EventArgs());
     50        BeforeInsertEvent(this, EventArgs.Empty);
    5151    }
    5252
    5353    protected virtual void OnAfterInsert() {
    5454      if (AfterInsertEvent != null)
    55         AfterInsertEvent(this, new EventArgs());
     55        AfterInsertEvent(this, EventArgs.Empty);
    5656    }
    5757
    5858    protected virtual void OnBeforeRemove() {
    5959      if (BeforeRemoveEvent != null)
    60         BeforeRemoveEvent(this, new EventArgs());
     60        BeforeRemoveEvent(this, EventArgs.Empty);
    6161    }
    6262
    6363    protected virtual void OnAfterRemove() {
    6464      if (AfterRemoveEvent != null)
    65         AfterRemoveEvent(this, new EventArgs());
     65        AfterRemoveEvent(this, EventArgs.Empty);
    6666    }
    6767
    6868    protected virtual void OnChange() {
    6969      if (ChangeEvent != null)
    70         ChangeEvent(this, new EventArgs());
     70        ChangeEvent(this, EventArgs.Empty);
    7171    }
    7272
    7373    protected virtual void OnClear() {
    7474      if (ClearEvent != null)
    75         ClearEvent(this, new EventArgs());
     75        ClearEvent(this, EventArgs.Empty);
    7676    }
    7777
Note: See TracChangeset for help on using the changeset viewer.