Is there any tool, g开发者_开发技巧iven any two classes, that will give me the difference in properties and methods between them (also is there any way to view the implementation, because if I could view the implementation I could probably write a parsing program to get the differences).
For example: I have Visual and Drawing which derives from Visual, I want to see all the properties and methods that Drawing adds. Right now I am doing this manually on MSDN.
For Base-class-sub-class relationships you normally can easily use VisualStudio to see what new properties are added in the sub-class, just right click the class-name somewhere in code and select Go To Definition
. Additionally there is the Class View
window (can be found in the View
menu) which also nicely lists everything about a class. The Object Browser
(View > Other Windows
) provides similar functionality.
I don't know of any, but somewhere like CodePlex might have something.
I wanted something similar a while back and ended up building my own tool, that used Reflection. If you don't know much about reflection then it's a really good way to get yourself an introduction, and it makes for a fun programming project for a long week-end or rainy day (not that my wife would probably agree).
精彩评论