Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/15/17 11:04:09 (7 years ago)
Author:
gkronber
Message:

#2640: merged r14227 and r14786 from trunk to stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Collections/3.3/IndexedItem.cs

    r14186 r15252  
    2020#endregion
    2121
    22 using System;
    23 
    2422namespace HeuristicLab.Collections {
    25   [Serializable]
    2623  public struct IndexedItem<T> {
    27     private int index;
     24    private readonly int index;
    2825    public int Index {
    2926      get { return index; }
    3027    }
    31     private T value;
     28    private readonly T value;
    3229    public T Value {
    3330      get { return value; }
     
    4037
    4138    public override string ToString() {
    42       return "[" + index.ToString() + ": " + value == null ? "null" : value.ToString() + "]";
     39      return "[" + index + ": " + (value == null ? "null" : value.ToString()) + "]";
    4340    }
    4441  }
Note: See TracChangeset for help on using the changeset viewer.