Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/10/10 14:03:54 (12 years ago)
Author:
abeham
Message:

#922

  • Corrected event pattern
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Result.cs

    r4725 r4763  
    130130    public event EventHandler ValueChanged;
    131131    private void OnValueChanged() {
    132       if (ValueChanged != null)
    133         ValueChanged(this, EventArgs.Empty);
     132      var handler = ValueChanged;
     133      if (handler != null) handler(this, EventArgs.Empty);
    134134      OnItemImageChanged();
    135135      OnToStringChanged();
Note: See TracChangeset for help on using the changeset viewer.