问题
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