Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/12 13:09:14 (12 years ago)
Author:
mkommend
Message:

#1760: Changed object graph traversal to use a hashset of objects for excluding specific members.

File:
1 edited

Legend:

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

    r8155 r8212  
    273273    protected virtual void OnPrepared() {
    274274      ExecutionTime = TimeSpan.Zero;
    275       foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
     275      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<object>() { Runs }).OfType<IStatefulItem>()) {
    276276        statefulObject.InitializeState();
    277277      }
     
    294294    public event EventHandler Stopped;
    295295    protected virtual void OnStopped() {
    296       foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<string>() { "runs" }).OfType<IStatefulItem>()) {
     296      foreach (IStatefulItem statefulObject in this.GetObjectGraphObjects(new HashSet<object>() { Runs }).OfType<IStatefulItem>()) {
    297297        statefulObject.ClearState();
    298298      }
Note: See TracChangeset for help on using the changeset viewer.