private static ExpandoObject BuildDisplayData(DataRow20 row, Dictionary <string, IndexedRowDefinition> rowDefinitionDictionary) { var indexedRowDefinition = FindIndexedRowDefinition(rowDefinitionDictionary, row.DataType); dynamic displayData = GetExpandoObjectFromRow(row.Row, indexedRowDefinition.RowDefinition); displayData.columnInfoIndex = indexedRowDefinition.Index; return(displayData); }
private static ExpandoObject BuildDisplayData(DataRow20 row, RowDefinition rowDefinition, Dictionary <string, IndexedRowDefinition> rowDefinitionDictionary) { if (row == null) { return(new ExpandoObject()); } dynamic displayData = GetExpandoObjectFromRow(row.Row, rowDefinition); displayData.columnInfoIndex = FindRowsDefinitionIndex(rowDefinitionDictionary, rowDefinition.DataType); return(displayData); }