I'm looking for any software which can: - analyze .NET source code (c# or vb.net) - build some repository which can be queried (NDepend and Resharper do something similar) - allow to query this repository looking for classes, methods, calling methods, and so on (like Resharper or NDpend) - accessing to the method's name, local variables name, type, static value and also method text
I would like to use it for creating the documentation about the stored procedure called by this software.
NDepend is a really wonderful tool that analyzes the IL / source code and allows you to write queries like the following one, but doesn't provide access to the constant value of the string (I need them to identify the stored procedure name / parameters).
from m in Types.WithFullNameNotIn( "Core.DbObject").ChildMethods()
let depth0 = m.DepthOfIsUsing("Core.DbObject")
where depth0 >= 0
&& !m.Name.Contains(".ctor")
orderby depth0
select new { m, depth0 }
What is my final purpose?
I've got a big source code in Vb.net. I would like to track every call to the stored procedure saving:
The call to the stored procedure behave as it follows:
RunProcedure("dbo.Log", parameters, "Log_LoadFromID")
I need to extract:
- the name of the Vb.NET Method --> easy using IL and metadata information
- the name of the Stored Procedure --> easy using textual analisys of code
- the list of the parameters passed to the store --> easy using textual analisys of code
I've tried to look for it but I couldn't find anything similar to this.
EDIT
I've found something here: https://stackoverflow.com/a/10642840/196210
Extra details:
I think it's really hard to find a similar software. So I've no problem if it's a plugin for Visual Studio as well as a standalone tool or a .NET framework. Also it doesn't matter were this info will be exported. It's only important that I can use this info. I need to generate a report. For sure, I guess, it will be a Windows Software or a .NET Framework, but if you find an Android App doing this it will be ok as well :-)