Changeset 15252 for stable/HeuristicLab.Collections
- Timestamp:
- 07/15/17 11:04:09 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14227,14786
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Collections/3.3/IndexedItem.cs
r14186 r15252 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.