Method GetTypeDescriptor
GetTypeDescriptor(Type, object)
Gets a custom type descriptor for the given type and object.
public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)Parameters
- objectTypeType
- The type of object for which to retrieve the type descriptor. 
- instanceobject
- An instance of the type. Can be null if no instance was passed to the TypeDescriptor. 
Returns
- ICustomTypeDescriptor
- An ICustomTypeDescriptor that can provide metadata for the type.