0
Reply

Extensibility and reflection

Johan.Peeters

Johan.Peeters

Apr 26 2004 6:56 AM
1.5k
Does anybody know, are there classes and methods available to do some kind of metrics counting on C# projects. Lets say I want to count the number of classes in a project, the number of methods and properties in a class and the number of lines of code in a class. There are some more thing I want to count but I think when I get started I can find out the rest myself. I know I can get the projects out of a solution by using the envDte namespace and then get items out of a project and then get the members of the item but then I get all methods also the one from the base classes like ToString() ann Equal(). This is not what I want, I only want the actual methods a,nd properties that are coded in the classes.