Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

classes and methods report

Is there any tool or extension to generate a report which contains data about classes and methods? For example, show a summary of all classes and the methods included in each class with the count of both.

like image 220
Maged Farag Avatar asked Jul 19 '11 10:07

Maged Farag


People also ask

What is a method class?

A class method is a method that can be invoked without reference to any object instance; these are called static methods in other languages. The term method usually refers to an instance method. The more specific phrase class method is used to refer to class methods.

What is class and methods in SAP?

Methods are internal procedures in a class that defines the behavior of an object. Methods can access all class attributes that allows to change the object data content. Methods have a parameter interface that is used to supply values while calling methods and receive values back from methods.

What is a class and what is a method of a class?

Definition. A class is a template for creating or instantiating objects within a program while a method is a function that exposes the behavior of an object. Thus, this is the main difference between class and method.


2 Answers

I found it in Visual studio. go to the following menu option

Analyze > Calculate Code Metrics for Solution

It will show Code Metrics Result window. From this window choose export to excel and you'll get a report with all the projects, Namespaces, Classes, Methods and some other details about them in Excel file.

like image 89
Maged Farag Avatar answered Oct 20 '22 00:10

Maged Farag


NDepend lets you perform all kinds of queries about your code. I can't say I've used it myself, but I would be surprised if it didn't let you generate reports.


See reports generated by NDepend here.

See explanations about NDepend code metrics here.

Also you can get all these result both in Visual Studio 2017, 2015, 2013, 2012, 2010, and also in Visual Studio Team Services.

like image 45
Jon Skeet Avatar answered Oct 20 '22 00:10

Jon Skeet