我想避免在我编写自定义UITypeEditor的某个类型的每个实例上放置EditorAttribute.
我不能在类型上放置EditorAttribute,因为我无法修改源代码.
我引用了将要使用的唯一PropertyGrid实例.
我是否可以告诉PropertyGrid实例(或所有实例)在遇到特定类型时使用自定义UITypeEditor?
这是一篇MSDN文章,它提供了如何在.NET 2.0或更高版本中执行此操作的起点.
.net c# propertygrid uitypeeditor
.net ×1
c# ×1
propertygrid ×1
uitypeeditor ×1