用于比较/查看构成 WPF 体系结构的类的工具
是否有任何工具,给定任何两个类,可以让我了解它们之间的属性和方法的差异(还有什么方法可以查看实现,因为如果我可以查看实现,我可能可以编写一个解析程序来获取差异)。
例如:我有Visual和Drawing,它派生自Visual,我想查看Drawing添加的所有属性和方法。现在我正在 MSDN 上手动执行此操作。
Is there any tool, given 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于基类-子类关系,您通常可以轻松地使用 VisualStudio 来查看子类中添加了哪些新属性,只需右键单击代码中某处的类名,然后选择
转到定义
。此外,还有“类视图”窗口(可以在“视图”菜单中找到),它也很好地列出了有关类的所有内容。对象浏览器
(View > Other Windows
)提供类似的功能。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 theClass View
window (can be found in theView
menu) which also nicely lists everything about a class. TheObject Browser
(View > Other Windows
) provides similar functionality.我不知道有什么,但像 CodePlex 这样的地方可能有一些东西。
我不久前想要类似的东西,最终构建了自己的工具,该工具使用 反射。如果您对反射了解不多,那么这是一个让自己了解的好方法,并且它可以为长周末或下雨天提供一个有趣的编程项目(我的妻子可能不会同意)。
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).