ICustomTypeDescriptorProvider
Ecng.ComponentModel
Provides a mechanism to retrieve a custom type descriptor for a given type and instance.
Métodos
TryGet
public bool TryGet(Type type, object instance, ICustomTypeDescriptor descriptor)
result = iCustomTypeDescriptorProvider.TryGet(type, instance, descriptor)
Attempts to retrieve the custom type descriptor associated with the specified type and instance.
- type
- The type for which the custom type descriptor is requested.
- instance
- The instance associated with the specified type.
- descriptor
- When this method returns, contains the custom type descriptor if found; otherwise, null.
Retorna: True if the custom type descriptor was successfully retrieved; otherwise, false.