Skip to content

Commit 9d9f224

Browse files
author
Prashanth Govindarajan
committed
sq
1 parent 96bb44a commit 9d9f224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Data.Analysis/IDataView.Extension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ public static DataFrame ToDataFrame(this IDataView dataView, long maxRows, param
100100

101101
using (DataViewRowCursor cursor = dataView.GetRowCursor(activeColumns))
102102
{
103-
List<Delegate> activeColumnDelegates = new List<Delegate>();
103+
Delegate[] activeColumnDelegates = new Delegate[activeColumns.Count];
104104
int columnIndex = 0;
105105
foreach (DataViewSchema.Column column in activeColumns)
106106
{
107107
Delegate valueGetter = columns[columnIndex].GetValueGetterUsingCursor(cursor, column);
108-
activeColumnDelegates.Add(valueGetter);
108+
activeColumnDelegates[columnIndex] = valueGetter;
109109
columnIndex++;
110110
}
111111
while (cursor.MoveNext() && cursor.Position < maxRows)

0 commit comments

Comments
 (0)