I need help for get a object values, this object is in an object list, for example.
list<object> objectList = new list<object>();
objectList.Add( new { id = 1, name = "name1"});
objectList.Add( new { id = 2, name = "name2"});
the problem is I can't get the values of these objects inside the list, and put their values in a excel file, I tried this.
int row = 2
for(int i = 0; row < objectList ; i++){
excelRow[row,1].Value = item[i].id
excelRow[row,2].Value = item[i].name
row++
}