15 implementations of ICustomTypeDescriptor
System.ComponentModel.TypeConverter (5)
System\ComponentModel\CustomTypeDescriptor.cs (1)
8public abstract class CustomTypeDescriptor : ICustomTypeDescriptor
System\ComponentModel\TypeDescriptor.cs (4)
2797private sealed class ComNativeTypeDescriptor : ICustomTypeDescriptor 3075private sealed class MergedTypeDescriptor : ICustomTypeDescriptor 3416private readonly struct DefaultExtendedTypeDescriptor : ICustomTypeDescriptor 3773private readonly struct DefaultTypeDescriptor : ICustomTypeDescriptor
System.Data.Common (5)
System\Data\Common\DataRecordInternal.cs (1)
11internal sealed class DataRecordInternal : DbDataRecord, ICustomTypeDescriptor
System\Data\Common\DbConnectionStringBuilder.cs (1)
25public class DbConnectionStringBuilder : IDictionary, ICustomTypeDescriptor
System\Data\Common\DbDataRecord.cs (1)
9public abstract class DbDataRecord : ICustomTypeDescriptor, IDataRecord
System\Data\DataRowView.cs (1)
9public class DataRowView : ICustomTypeDescriptor, IEditableObject, IDataErrorInfo, INotifyPropertyChanged
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
9internal sealed class DataViewManagerListItemTypeDescriptor : ICustomTypeDescriptor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
27public abstract unsafe partial class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
16private sealed unsafe class ComTypeDescriptor : ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
16private sealed class NullTypeDescriptor : ICustomTypeDescriptor
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1126private class SelectionWrapper : PropertyDescriptor, ICustomTypeDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1195internal class ListBoxItem : ICustomTypeDescriptor, IComponent
287 references to ICustomTypeDescriptor
netstandard (1)
netstandard.cs (1)
330[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.ICustomTypeDescriptor))]
PresentationFramework (2)
MS\Internal\Data\ValueTable.cs (1)
216if (item is ICustomTypeDescriptor)
System\Windows\PropertyPath.cs (1)
597if (accessor == null && item is ICustomTypeDescriptor)
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
316[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.ICustomTypeDescriptor))]
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (2)
59public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(AllMembersAndInterfaces)] Type objectType, object? instance) 61ICustomTypeDescriptor? baseDescriptor = base.GetTypeDescriptor(objectType, instance);
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
20ICustomTypeDescriptor? parent,
System.ComponentModel.TypeConverter (134)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
20public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance) 28public XTypeDescriptor(ICustomTypeDescriptor? parent) : base(parent)
System\ComponentModel\CustomTypeDescriptor.cs (5)
10private readonly ICustomTypeDescriptor? _parent; 34protected CustomTypeDescriptor(ICustomTypeDescriptor? parent) 272/// <see cref="ICustomTypeDescriptor.GetConverterFromRegisteredType()"/>, 273/// <see cref="ICustomTypeDescriptor.GetEventsFromRegisteredType()"/>, and 274/// <see cref="ICustomTypeDescriptor.GetPropertiesFromRegisteredType()"/>.
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (3)
84public override ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 117public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 128public override ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) => Provider.GetTypeDescriptorFromRegisteredType(objectType, instance);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
154/// <see cref="ICustomTypeDescriptor.GetConverterFromRegisteredType()"/>, 155/// <see cref="ICustomTypeDescriptor.GetEventsFromRegisteredType()"/>, and 156/// <see cref="ICustomTypeDescriptor.GetPropertiesFromRegisteredType()"/>.
System\ComponentModel\PropertyDescriptor.cs (1)
370if (target is ICustomTypeDescriptor td)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
819public override ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 825public override ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) 1030public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
System\ComponentModel\TypeDescriptionProvider.cs (9)
108public virtual ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 132public virtual ICustomTypeDescriptor GetExtendedTypeDescriptorFromRegisteredType(object instance) 252public ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType) 266public ICustomTypeDescriptor? GetTypeDescriptor(object instance) 287public virtual ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 305public ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(Type objectType) 325public ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(object instance) 356public virtual ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) 369ICustomTypeDescriptor? Forward() => GetTypeDescriptor(objectType, instance);
System\ComponentModel\TypeDescriptor.cs (108)
738ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 751if (component is ICustomTypeDescriptor) 755ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 773ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1008internal static ICustomTypeDescriptor? GetDescriptor(object component, bool noCustomTypeDesc) 1015ICustomTypeDescriptor? desc = NodeFor(component).GetTypeDescriptor(component); 1016ICustomTypeDescriptor? d = component as ICustomTypeDescriptor; 1025internal static ICustomTypeDescriptor? GetDescriptorFromRegisteredType(object component) 1027ICustomTypeDescriptor? desc = NodeFor(component).GetTypeDescriptorFromRegisteredType(component); 1028ICustomTypeDescriptor? d = component as ICustomTypeDescriptor; 1041internal static ICustomTypeDescriptor GetExtendedDescriptor(object component) 1051internal static ICustomTypeDescriptor GetExtendedDescriptorFromRegisteredType(object component) 1213ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 1226if (component is ICustomTypeDescriptor) 1231ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1249ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1470ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 1483if (component is ICustomTypeDescriptor) 1488ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1506ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1563ICustomTypeDescriptor typeDesc = GetDescriptorFromRegisteredType(component)!; 1566if (component is ICustomTypeDescriptor) 1576ICustomTypeDescriptor extDesc = GetExtendedDescriptorFromRegisteredType(component); 2776public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 2813AttributeCollection ICustomTypeDescriptor.GetAttributes() => _handler.GetAttributes(_instance); 2815string ICustomTypeDescriptor.GetClassName() => _handler.GetClassName(_instance); 2817string? ICustomTypeDescriptor.GetComponentName() => null; 2820TypeConverter ICustomTypeDescriptor.GetConverter() => _handler.GetConverter(_instance); 2823EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() 2829PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() 2835object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 2840EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2846EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 2852PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 2858PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 2863object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance; 2887public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 2903internal AttributeTypeDescriptor(Attribute[] attrs, ICustomTypeDescriptor? parent) : base(parent) 3063public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 3077private readonly ICustomTypeDescriptor _primary; 3078private readonly ICustomTypeDescriptor _secondary; 3083internal MergedTypeDescriptor(ICustomTypeDescriptor primary, ICustomTypeDescriptor secondary) 3092AttributeCollection ICustomTypeDescriptor.GetAttributes() 3103string ICustomTypeDescriptor.GetClassName() 3114string? ICustomTypeDescriptor.GetComponentName() 3123TypeConverter ICustomTypeDescriptor.GetConverter() 3135EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 3144PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3153object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 3165EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3177EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3189PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 3201PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 3214object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3283public override ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 3295public override ICustomTypeDescriptor GetExtendedTypeDescriptorFromRegisteredType(object instance) 3357public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 3373public override ICustomTypeDescriptor GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) 3391ICustomTypeDescriptor Forward() => GetTypeDescriptor(objectType, instance); 3435AttributeCollection ICustomTypeDescriptor.GetAttributes() 3447ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3458string? ICustomTypeDescriptor.GetClassName() 3470ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3480string? ICustomTypeDescriptor.GetComponentName() 3492ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3501TypeConverter ICustomTypeDescriptor.GetConverter() 3513ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3523TypeConverter ICustomTypeDescriptor.GetConverterFromRegisteredType() 3535ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_instance); 3546EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 3558ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3567PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3578ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3587object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 3600ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3609EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3620ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3630EventDescriptorCollection ICustomTypeDescriptor.GetEventsFromRegisteredType() 3641ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance); 3652EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3668ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3679PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 3690ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3700PropertyDescriptorCollection ICustomTypeDescriptor.GetPropertiesFromRegisteredType() 3711ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance); 3722PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 3738ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3749object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3762ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3809ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3836ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3848string? ICustomTypeDescriptor.GetComponentName() 3861ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3887ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3914ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 3942ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3968ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3996ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4021ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4048ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 4076ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4104ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4132ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 4162ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4189ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance);
System.Data.Common (63)
System\Data\Common\DataRecordInternal.cs (13)
305AttributeCollection ICustomTypeDescriptor.GetAttributes() 310string? ICustomTypeDescriptor.GetClassName() 315string? ICustomTypeDescriptor.GetComponentName() 321TypeConverter? ICustomTypeDescriptor.GetConverter() 327EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 333PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 339object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 344EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 350EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 356PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 358return ((ICustomTypeDescriptor)this).GetProperties(null); 362PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => 365object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
592string? ICustomTypeDescriptor.GetClassName() 601string? ICustomTypeDescriptor.GetComponentName() 610AttributeCollection ICustomTypeDescriptor.GetAttributes() 615object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 620TypeConverter ICustomTypeDescriptor.GetConverter() 625PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 630PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 635PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 640EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 646EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 654EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 658object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbDataRecord.cs (13)
73AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null); 75string? ICustomTypeDescriptor.GetClassName() => null; 77string? ICustomTypeDescriptor.GetComponentName() => null; 80TypeConverter? ICustomTypeDescriptor.GetConverter() => null; 83EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 86PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 89object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 91EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 94EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null); 97PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => 98((ICustomTypeDescriptor)this).GetProperties(null); 101PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => 104object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataRowView.cs (13)
232AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null); 233string? ICustomTypeDescriptor.GetClassName() => null; 234string? ICustomTypeDescriptor.GetComponentName() => null; 237TypeConverter? ICustomTypeDescriptor.GetConverter() => null; 240EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 243PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 246object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 248EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 251EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null); 254PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => ((ICustomTypeDescriptor)this).GetProperties(null); 257PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => 260object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataViewManagerListItemTypeDescriptor.cs (12)
34AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null); 40string? ICustomTypeDescriptor.GetClassName() => null; 46string? ICustomTypeDescriptor.GetComponentName() => null; 52TypeConverter? ICustomTypeDescriptor.GetConverter() => null; 58EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 64PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 70object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 78EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 88EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => 98PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => 109PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => 139object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System.Private.Windows.Core.TestUtilities (2)
CustomConverter.cs (2)
50public override ICustomTypeDescriptor GetTypeDescriptor( 58public TypeConverterProvider(ICustomTypeDescriptor? parent, TypeConverter converter) : base(parent)
System.Windows.Forms (56)
System\Windows\Forms\ActiveX\AxHost.cs (12)
2426AttributeCollection ICustomTypeDescriptor.GetAttributes() 2442string? ICustomTypeDescriptor.GetClassName() 2452string? ICustomTypeDescriptor.GetComponentName() 2462TypeConverter? ICustomTypeDescriptor.GetConverter() 2469EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 2476PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 2486object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 2497EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2502EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 2687PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 2694PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 2700object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
500PropertyDescriptorCollection props = ((ICustomTypeDescriptor)_host).GetProperties();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
44if (target is ICustomTypeDescriptor customTypeDescriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
445if (component is ICustomTypeDescriptor descriptor) 608if (component is ICustomTypeDescriptor descriptor) 793if (component is ICustomTypeDescriptor descriptor) 827if (owner is ICustomTypeDescriptor descriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
42if (instance is ICustomTypeDescriptor customTypeDescriptor)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (13)
13/// The <see cref="ICustomTypeDescriptor"/> given by <see cref="ComNativeDescriptor"/> for a given type instance. 27AttributeCollection ICustomTypeDescriptor.GetAttributes() => GetAttributes(_instance); 29string? ICustomTypeDescriptor.GetClassName() => GetClassName(_instance); 31string? ICustomTypeDescriptor.GetComponentName() 38TypeConverter ICustomTypeDescriptor.GetConverter() => GetIComponentConverter(); 41EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 44PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => _handler.GetDefaultProperty(_instance); 47object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => GetEditor(_instance, editorBaseType); 49EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new(null); 52EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new(null); 55PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => _handler.GetProperties(_instance); 58PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => _handler.GetProperties(_instance); 60object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
65public override ICustomTypeDescriptor? GetTypeDescriptor(
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (12)
18AttributeCollection ICustomTypeDescriptor.GetAttributes() => new(s_staticAttributes); 19string? ICustomTypeDescriptor.GetClassName() => string.Empty; 20string? ICustomTypeDescriptor.GetComponentName() => string.Empty; 22TypeConverter? ICustomTypeDescriptor.GetConverter() => GetIComponentConverter(); 24EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 26PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => null; 28object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 29EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => EventDescriptorCollection.Empty; 31EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty; 33PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => PropertyDescriptorCollection.Empty; 35PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => PropertyDescriptorCollection.Empty; 36object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
957if (newObject is ICustomTypeDescriptor descriptor) 1052if (currentObject is ICustomTypeDescriptor descriptor) 2226return @object is ICustomTypeDescriptor descriptor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1362if (value is ICustomTypeDescriptor descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
183if (propertyOwner is ICustomTypeDescriptor descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
258if (owner is ICustomTypeDescriptor descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
334if (owner is ICustomTypeDescriptor descriptor) 400if (owner is ICustomTypeDescriptor descriptor) 728if (realOwner is ICustomTypeDescriptor descriptor)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
296if (dmProp is null || dmProp.PropertyType is ICustomTypeDescriptor) 590if (indexer is not null && !typeof(ICustomTypeDescriptor).IsAssignableFrom(indexer.PropertyType))
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (12)
1240AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType); 1245string ICustomTypeDescriptor.GetClassName() => PropertyType.Name; 1250string? ICustomTypeDescriptor.GetComponentName() => null; 1256TypeConverter? ICustomTypeDescriptor.GetConverter() => null; 1261EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 1266PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() => this; 1272object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 1279EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 1290EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty; 1298PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => _properties; 1307PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => _properties; 1315object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
1236AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn); 1238string? ICustomTypeDescriptor.GetClassName() => TypeDescriptor.GetClassName(DataGridViewColumn); 1240string? ICustomTypeDescriptor.GetComponentName() => TypeDescriptor.GetComponentName(DataGridViewColumn); 1243TypeConverter ICustomTypeDescriptor.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn); 1245EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => TypeDescriptor.GetDefaultEvent(DataGridViewColumn); 1247PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn); 1250object? ICustomTypeDescriptor.GetEditor(Type type) => TypeDescriptor.GetEditor(DataGridViewColumn, type); 1252EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn); 1254EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!); 1257PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => ((ICustomTypeDescriptor)this).GetProperties(null); 1260PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attrs) 1297object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) =>