Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些自定义 WPF UserControl。
UserControl
它有这样的实现
public partial class CustomControl : UserControl, IMyPluginInterface
如何在其他应用程序中获取该 UserControl 的类型?
或者如何枚举汇编中的类型?
谢谢!
试试这个:
Type myType = myCustomUserControl.GetType();