- Timestamp:
- 02/13/10 04:37:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/IndexedItem.cs
r2669 r2790 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using System.Text; 26 24 … … 43 41 44 42 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() + "]"; 50 44 } 51 45 }
Note: See TracChangeset
for help on using the changeset viewer.