Click here to Skip to main content
15,895,808 members

Comments by aref.bozorgmehr (Top 22 by date)

aref.bozorgmehr 28-Sep-13 19:04pm View    
thanks but when we use " WriteToFile<t>(List<t> YourList)" can't to use Name and ID
your way is true when we use "static public void WriteToFile(List YourList)"
aref.bozorgmehr 27-Sep-13 21:49pm View    
i don't have problem with excel i want get data from function like my example but when i send data for function i don't know how can i receive that and use in a loop
aref.bozorgmehr 27-Sep-13 20:31pm View    
yes i read generic but i want when i send List<class> to this function the function writ data to excel file
like this
for (int i = 0; i < YourList.count(); i++)
{
excelWorksheet.Cells[i + 1, "A"] = ID;
excelWorksheet.Cells[i + 1, "B"] = Name;
}
aref.bozorgmehr 27-Sep-13 19:42pm View    
i want when i send item<anyclass> to this function the function writ data to excel file

for (int i = 0; i < YourList.count(); i++)
excelWorksheet.Cells[i + 1, "A"] = //here what can i to do ;
aref.bozorgmehr 27-Sep-13 19:07pm View    
I know that, when i use your way and i get result from first.tostring() inseted data i have below result
mynamespace.a