C# Classes, export to Excel

五迷三道 提交于 2020-04-30 07:33:44

问题


Is it possible to export my classes to excel?

I need to have class name with all properties. I have Resharper and VS 2015 on my system.

I've searched this before and found this How Can I export the list of classes from a Visual studio 2008 solution which is not my case.

I would prefer to have each class in a sheet and the properties as rows of the sheet if possible.

P.S: I know how to do it pro grammatically. I am looking for a way to do this simple task using Visual Studio. This is not the functionality of my project, so it is not a good idea


回答1:


Follow these links To get all classes :

How to get all classes within namespace?

Get the property list from each class using Reflaction

How to get the list of properties of a class?

After that search for export to excel.



来源:https://stackoverflow.com/questions/39079198/c-sharp-classes-export-to-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!