Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/12/16 09:15:12 (8 years ago)
Author:
thasling
Message:

#2615:
added IDisposable to classes with Dispose()-Method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.Hive/P2PMigrationAnalyzer.cs

    r14061 r14252  
    3939  [Item("P2PMigrationAnalyzer", "Migrates individuals using a P2P network.")]
    4040  [StorableClass]
    41   public class P2PMigrationAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator {
     41  public class P2PMigrationAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator, IDisposable {
    4242    // state: messagehandler
    4343    [ExcludeFromObjectGraphTraversalAttribute]
     
    135135    public override void ClearState() {
    136136      base.ClearState();
    137       h.Dispose();
    138       h = null;
     137      Dispose();
    139138    }
    140139
     
    299298    }
    300299
     300    public void Dispose() {
     301      h.Dispose();
     302      h = null;
     303    }
     304
    301305  }
    302306}
Note: See TracChangeset for help on using the changeset viewer.