In order to analyze the technical architecture of competitor products (codenamed I6, which is used, I won't talk about it anymore), I made a class viewer myself.
Originally, we could see using ildasm or some. Net anti-compilers, but these tools have some shortcomings. For example, the bin directory contains. 20. NET components. When you use these tools to view them, 20 level-1 treenode will be displayed, even if many classes are under one namespace (physically stored in different files ).
CodeIt is very easy to note:
1. How to populate the fullname obtained after gettypes to the Treeview. After performing a recursion, we can get it done.
2. display the details of each class. This is also very simple. Use reflection.
After an afternoon of writing, I finally finished it. Let's take a look at our competitor's products, our own products, and finally the. NET Framework. Put a screenshot here!
The following figure shows that all the system. * classes are on one node.
The following figure shows all the methods (system. String/system. object is replaced by a simple one)