C# generic Excel exporter using reflection -
i'm working on generic excel exporter in c#. point put collection of type , specify properties of class should exported using lambda expressions , have done that. problem i'm struggling when have complex property in class, property value exported "namespace.classname" (e.g. "myapp.viewmodels.myviewmodel"). here code: excel exporter class: public class excelexporter { public void exporttoexcel<t>(ienumerable<t> data, params expression<func<t, object>>[] columns) { datatable datatable = this.converttodatatable(data, columns); //export datatable object excel using library... } private datatable converttodatatable<t>(ienumerable<t> data, params expression<func<t, object>>[] columnsfunc) { datatable table = new datatable(); foreach (var column in columnsfunc) { string