Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14786


Ignore:
Timestamp:
03/27/17 15:19:07 (8 years ago)
Author:
gkronber
Message:

#2640: small fixes in IndexedItem

File:
1 edited

Legend:

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

    r14185 r14786  
    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.