Changeset 14786 for trunk/sources
- Timestamp:
- 03/27/17 15:19:07 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/IndexedItem.cs
r14185 r14786 20 20 #endregion 21 21 22 using System;23 24 22 namespace HeuristicLab.Collections { 25 [Serializable]26 23 public struct IndexedItem<T> { 27 private int index;24 private readonly int index; 28 25 public int Index { 29 26 get { return index; } 30 27 } 31 private T value;28 private readonly T value; 32 29 public T Value { 33 30 get { return value; } … … 40 37 41 38 public override string ToString() { 42 return "[" + index .ToString() + ": " + value == null ? "null" : value.ToString() + "]";39 return "[" + index + ": " + (value == null ? "null" : value.ToString()) + "]"; 43 40 } 44 41 }
Note: See TracChangeset
for help on using the changeset viewer.