C# 2.0 (.NET 2005--Whidbey) supports generics

  • Change DataContainer to DataContainer<T>
    • Replace ArrayList with Generic.List<T>
    • Replace SortedList with Generic.SortedList<T, T>
    • Switch to row-major format?
      • Should speed up removing rows
      • Will make filtering rows easier
      • Update all functions for change in structure
    • Change Filter to return a new DataContainer
      • Will not modify the current object
  • DataSet adds row name functionality to DataContainer<double>
    • Add SortedList<string, int> rowIndices2 - map row names to indices.
    • Change Filter to return a new DataSet
      • Will not modify the current object
      • Update function call for Distance
  • Score adds score generation to DataContainer<double>
  • InformationSet : DataContainer<string>

  • Replace ArrayList with Generic.List<T> to reduce boxing and unboxing
  • Replace SortedList with Generic.SortedList<T, T>

Other changes

  • Check use of SortedList<T, T> for maybe using SortedDictionary<T, T>
  • Remove unnecessary unboxing
  • Check List<T> properties

Topic revision: r8 - 12 Jan 2006, WillGray
 

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback