0
我想通過實現ICustomTypeDescriptor提供假屬性信息來模擬新項目的鍵值配置的強打字。用於模擬強打字的ICustomTypeDescriptor
的配置實例應該提供所有默認配置鍵與然而默認值的屬性:我注意到,VS08 IntelliSense不包括「僞造」,這些類似的例子在創建屬性
http://zcoder.blogspot.com/2007/11/icustomtypedescriptor.html
即使如果我intellisense緩存屬性信息,我在一個DLL中的另一個類中使用MyCustomClass的靜態實例,仍然沒有得到它的智能感知工作。
有用的參考 ICustomTypeDescriptor, TypeDescriptionProvider, TypeConverter, and UITypeEditor