Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to analyze C# code to find unreferenced classes

I have legacy C# code and I am using Visual Studio 2008. I am looking for a tool, sort of code-analyzer that would say to me which class are not used and also some other useful information that might useful for code optimization.

If there is exact duplicate please specify.

Thank you.

like image 796
Captain Comic Avatar asked Apr 09 '10 12:04

Captain Comic


People also ask

What is analysis in C language?

The analysis approximates for every variable of pointer type the set of objects it may point to during program execution. This information can be used to improve the accuracy of other analyses. The C language is considerably harder to analyze than for example Fortran and Pas- cal.

What is Frama C used for?

Frama-C can be used for the following purposes: To understand C code which you have not written. In particular, Frama-C enables one to observe a set of values, slice the program into shorter programs, and navigate in the program. To prove formal properties on the code.

Why code analysis is required?

Implementing code analysis not only improves the overall product quality standards, but also pushes your developers to adopt best coding practices. This allows building a strong culture of developing the best products that will serve its purpose efficiently.


2 Answers

Have a look at NDepend.

like image 58
Guillaume Avatar answered Sep 22 '22 08:09

Guillaume


ReSharper (r#) has something of the sort.

like image 29
Daniel Elliott Avatar answered Sep 19 '22 08:09

Daniel Elliott