473,500 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tool to show code references?

Does anyone know of a tool out there that will parse a project and show
the references between classes? Its easy enough to show association
through inheritance, but how can I show dependancy, like if a class
instantiates a member of a certain type, I would like to see that type
listed as a dependancy.

Is that information possibly in the meta-data for the assembly? Thanks
Nov 16 '05 #1
2 1439
John,

No, this isn't in the assembly. You would have to perform a
code-analysis for this. A basic way of doing this would be to get the type
of the class. Once you have that, you would check the types of the fields,
the return types of the properties (as well as the type of the parameters in
the indexer if one exists), as well as the types of the parameters and
return values of each of the methods. This should give you a decent idea of
what dependencies exist between your classes.

However, it will be harder to figure out where derived classes are used
and whatnot. For that, you will actually have to find calls to new and
Activator.CreateInstance in the IL. Additionally, you will have to find the
return values of any methods or properties you call in your methods and
properties.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"John Parrish" <pl*******@me.com> wrote in message
news:Of**************@TK2MSFTNGP09.phx.gbl...
Does anyone know of a tool out there that will parse a project and show
the references between classes? Its easy enough to show association
through inheritance, but how can I show dependancy, like if a class
instantiates a member of a certain type, I would like to see that type
listed as a dependancy.

Is that information possibly in the meta-data for the assembly? Thanks

Nov 16 '05 #2
> Does anyone know of a tool out there that will parse a project and show
the references between classes? Its easy enough to show association
through inheritance, but how can I show dependancy, like if a class
instantiates a member of a certain type, I would like to see that type
listed as a dependancy.

Is that information possibly in the meta-data for the assembly? Thanks


Try 9Rays.Net Spices.Net (http://spices.9rays.net ) - this app has Modeler
plugin that shows various types of relations as between types and assemblies
diagrams - assembly references, interface implementations, inheritance and
nesting.
Diagrams can be exported as xml/uml, and as graphics.

--
Best regards,
Al Ponomarev
9Rays.Net

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1808
by: Ron_Adam | last post by:
Hi, Sometimes it just helps to see what's going on, so I've been trying to write a tool to examine what names are pointing to what objects in the current scope. This still has some glitches,...
2
1925
by: Thomas Miller | last post by:
Hello, I have built a c# class library (I will call it "Assembly1"), and built an installer that installs it. It is working well. I created a new asp.net application, right-clicked on references...
2
2199
by: Jonathan LaRosa | last post by:
Hi all - I'm wondering if anyone has (or knows of) a tool that will allow me to search through VB code, tables, queries, reports, forms, and other objects, for references to all other types of...
7
4025
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the...
1
1467
by: Christian Münscher | last post by:
Hi Group! Here I have a big chaotic web-project where all 500 files are lying around in on directory without any structure. On the content-level there is a structure, the whole thing is divided...
4
1402
by: Jim Davis | last post by:
I've been working on a new release of my "debug" library. The original allowed the developer to "dump" complex objects (even those with circular references) to the screen for review. This version...
4
2360
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for...
6
1612
by: brandon.e.taylor | last post by:
I am looking for a tool capable of producing HTML pages from source files written in different languages, where the source written in one language is a port of the source written in another...
2
1783
by: vips | last post by:
I am trying to generate a proxy class from a WSDL contract file that has nested levels of elements/attribute groups. It seems the WSDL.exe tool only reads upto a certain nesting level and then it...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.