本文介绍了什么是ICustomTypeDescriptor,何时使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道它是什么以及何时使用. MSDN并没有帮助我.MSDN声明ICustomTypeDescriptor提供了一个接口,该接口提供了对象的动态自定义类型信息.

I don't understand what it is and when to use it. MSDN didn't help me.MSDN states that ICustomTypeDescriptor Provides an interface that supplies dynamic custom type information for an object.

推荐答案

有很多资源可以显示ICustomTypeDescriptor接口的不同用例,但是总而言之,典型的用例是提供自定义类型描述超出了标准TypeDescriptor所提供的内容.很少需要实现接口,而无需返回自定义成员描述符,例如自定义PropertyDescriptor.

There are a lot of resources available that show different use cases for the ICustomTypeDescriptor interface, but in short, the typical use case is to provide custom type description outside of what the standard TypeDescriptor provides. The interface is rarely implemented without needing to return custom member descriptors such as a custom PropertyDescriptor.

MSDN的类型描述符概述是一个很好的资源,它可能有助于进一步阐明目的和用途.

The Type Descriptor Overview from the MSDN is a good resource which might help further clarify purpose and usage.

这篇关于什么是ICustomTypeDescriptor,何时使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 02:01