1

DataColumnCollection class has a columnFromName field that is defined as Dictionary of string and DataColumn as shown below

public sealed class DataColumnCollection : InternalDataCollectionBase {

        private readonly DataTable table;
        private readonly ArrayList _list = new ArrayList();
        private int defaultNameIndex = 1;
        private DataColumn[] delayedAddRangeColumns;

        private readonly Dictionary<string, DataColumn> columnFromName;     
....

When I see this object in memory, its shown as a Hashtable (image below). enter image description here I have used Dictionary object in many applications that are shown as Dictionary in Windbg/Sos also. How come this Dictionary is getting translated into a Hashtable?

paul deter
  • 857
  • 2
  • 7
  • 20

0 Answers0