Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/10 04:37:49 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • implemented reviewers' comments
  • added additional plugins HeuristicLab.Evolutionary, HeuristicLab.Permutation, HeuristicLab.Selection, and HeuristicLab.Routing.TSP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Collections/3.3/IndexedItem.cs

    r2669 r2790  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    2523using System.Text;
    2624
     
    4341
    4442    public override string ToString() {
    45       StringBuilder sb = new StringBuilder();
    46       sb.Append("[").Append(index).Append(": ");
    47       if (value != null) sb.Append(value.ToString());
    48       sb.Append("]");
    49       return sb.ToString();
     43      return "[" + index.ToString() + ": " + value == null ? "null" : value.ToString() + "]";
    5044    }
    5145  }
Note: See TracChangeset for help on using the changeset viewer.