Changeset 15973 for branches/2522_RefactorPluginInfrastructure/HeuristicLab.Collections/3.3/IndexedItem.cs
- Timestamp:
- 06/28/18 11:13:37 (6 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Collections/3.3/IndexedItem.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 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.