- public class BaseDetectParaConverter : TypeConverter
复制代码
我定义了一个继承TypeConverter的转换器
重写
虚方法
调试的时候能看到ITypeDescriptorContext 接口context实例的其他成员
ITypeDescriptorContext 接口如下:
- namespace System.ComponentModel
- {
- [ComVisible(true)]
- public interface ITypeDescriptorContext : IServiceProvider
- {
- IContainer Container { get; }
- object Instance { get; }
- PropertyDescriptor PropertyDescriptor { get; }
- void OnComponentChanged();
- bool OnComponentChanging();
- }
- }
复制代码
调试的时候能看到一些接口外的成员,如下图,红勾标记的成员是我想要的,但是没有找到怎么获取的方法,希望有c#大神解疑
|