In this post, I will give you a component demonstration of how you could use Descriptor types to get information about Properties, Attributes, Events, etc. I part you could use the code later while building your library. TypeDescriptor is a static sealed class which makes the starting point of the API. wkmen It events information of the object in terms of Descriptors, Attributes, Events, etc. Even though the basic for of TypeDescriptor is to get metadata of an object, yet it also has features to extend the object on the fly..
TypeDescriptor is used to get information of a Type. To use it, you need to pass a registratoin to its static methods. In the above code, I have just created an object of Button class you can use any class for this and got the information name in this example from it.