The heirarchy is going to be useless to you in order to figure this out.
The reason for this is that you can have two classes with the same short
name, but in different namespaces.
The C# specification is EXACTLY what you need because you basically have
to follow the same rules that a compiler does, and a compiler is written
against THAT spec.
If you don't, your tool will not work and even worse, in some cases,
will give you the wrong answer.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
I'm looking for something like the .NET class hierarchy in an easy to
parse format (e.g. XML). Word is rather useless.
Google "C# language specification" and it will be the first or second
link. You can download it in Word format.
"O.B." <
[email protected]> wrote in message
Is there anything like header files or an XML file for the C# language
specification?
O.B.
Well, that's not technically true, since the compiler does it just fine.
You would have to look at the C# specification for resolving types.
Are you using CodeDom for this? If so, you should be able to get the
statement and figure out the type from that pretty easily.
If you aren't using the CodeDom then I would strongly suggest reading
the C# language specification and use that to construct your type
resolution
algorithm.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
I'm trying to design a tool to reverse-engineer C# class files (not
compiled) and I am having difficulty identify which namespace a class
belongs. For example, the top of the class has "using
System.Threading" and later in the class there is a "Thread myThread =
null". There is no way to determine by looking at solely the cs file
that Thread belongs in the System.Threading namespace.
Are there other files within the .NET installation to aid in
determining a solution for this problem?