17 implementations of ICustomTypeDescriptor
System.ComponentModel.TypeConverter (5)
System\ComponentModel\CustomTypeDescriptor.cs (1)
8public abstract class CustomTypeDescriptor : ICustomTypeDescriptor
System\ComponentModel\TypeDescriptor.cs (4)
2799private sealed class ComNativeTypeDescriptor : ICustomTypeDescriptor 3073private sealed class MergedTypeDescriptor : ICustomTypeDescriptor 3414private readonly struct DefaultExtendedTypeDescriptor : ICustomTypeDescriptor 3771private 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)
22public 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)
1118private class SelectionWrapper : PropertyDescriptor, ICustomTypeDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1201internal class ListBoxItem : ICustomTypeDescriptor, IComponent
System.Windows.Forms.Tests (2)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
106private class CustomDescriptor : ICustomTypeDescriptor
System\Windows\Forms\ListBindingHelperTests.cs (1)
769public class CustomTypeDescriptorType : Type, ICustomTypeDescriptor
403 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)
217if (item is ICustomTypeDescriptor)
System\Windows\PropertyPath.cs (1)
604if (accessor == null && item is ICustomTypeDescriptor)
System (1)
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)
50public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance) 52ICustomTypeDescriptor? 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(DynamicallyAccessedMemberTypes.All)] 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(DynamicallyAccessedMemberTypes.All)] 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)
823public override ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 829public override ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) 1034public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] 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(DynamicallyAccessedMemberTypes.All)] Type objectType) 266public ICustomTypeDescriptor? GetTypeDescriptor(object instance) 287public virtual ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] 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)
729ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 742if (component is ICustomTypeDescriptor) 746ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 764ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 999internal static ICustomTypeDescriptor? GetDescriptor(object component, bool noCustomTypeDesc) 1006ICustomTypeDescriptor? desc = NodeFor(component).GetTypeDescriptor(component); 1007ICustomTypeDescriptor? d = component as ICustomTypeDescriptor; 1016internal static ICustomTypeDescriptor? GetDescriptorFromRegisteredType(object component) 1018ICustomTypeDescriptor? desc = NodeFor(component).GetTypeDescriptorFromRegisteredType(component); 1019ICustomTypeDescriptor? d = component as ICustomTypeDescriptor; 1032internal static ICustomTypeDescriptor GetExtendedDescriptor(object component) 1042internal static ICustomTypeDescriptor GetExtendedDescriptorFromRegisteredType(object component) 1204ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 1217if (component is ICustomTypeDescriptor) 1222ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1240ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1461ICustomTypeDescriptor typeDesc = GetDescriptor(component, noCustomTypeDesc)!; 1474if (component is ICustomTypeDescriptor) 1479ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1497ICustomTypeDescriptor extDesc = GetExtendedDescriptor(component); 1554ICustomTypeDescriptor typeDesc = GetDescriptorFromRegisteredType(component)!; 1557if (component is ICustomTypeDescriptor) 1567ICustomTypeDescriptor extDesc = GetExtendedDescriptorFromRegisteredType(component); 2778public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance) 2815AttributeCollection ICustomTypeDescriptor.GetAttributes() => _handler.GetAttributes(_instance); 2817string ICustomTypeDescriptor.GetClassName() => _handler.GetClassName(_instance); 2819string? ICustomTypeDescriptor.GetComponentName() => null; 2822TypeConverter ICustomTypeDescriptor.GetConverter() => _handler.GetConverter(_instance); 2825EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() 2831PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() 2837object ICustomTypeDescriptor.GetEditor(Type editorBaseType) 2842EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2848EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 2854PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 2860PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 2865object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => _instance; 2889public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance) 2905internal AttributeTypeDescriptor(Attribute[] attrs, ICustomTypeDescriptor? parent) : base(parent) 3061public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance) 3075private readonly ICustomTypeDescriptor _primary; 3076private readonly ICustomTypeDescriptor _secondary; 3081internal MergedTypeDescriptor(ICustomTypeDescriptor primary, ICustomTypeDescriptor secondary) 3090AttributeCollection ICustomTypeDescriptor.GetAttributes() 3101string ICustomTypeDescriptor.GetClassName() 3112string? ICustomTypeDescriptor.GetComponentName() 3121TypeConverter ICustomTypeDescriptor.GetConverter() 3133EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 3142PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3151object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 3163EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3175EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3187PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 3199PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 3212object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3281public override ICustomTypeDescriptor GetExtendedTypeDescriptor(object instance) 3293public override ICustomTypeDescriptor GetExtendedTypeDescriptorFromRegisteredType(object instance) 3355public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance) 3371public override ICustomTypeDescriptor GetTypeDescriptorFromRegisteredType(Type objectType, object? instance) 3389ICustomTypeDescriptor Forward() => GetTypeDescriptor(objectType, instance); 3433AttributeCollection ICustomTypeDescriptor.GetAttributes() 3445ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3456string? ICustomTypeDescriptor.GetClassName() 3468ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3478string? ICustomTypeDescriptor.GetComponentName() 3490ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3499TypeConverter ICustomTypeDescriptor.GetConverter() 3511ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3521TypeConverter ICustomTypeDescriptor.GetConverterFromRegisteredType() 3533ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_instance); 3544EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 3556ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3565PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 3576ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3585object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 3598ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3607EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3618ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3628EventDescriptorCollection ICustomTypeDescriptor.GetEventsFromRegisteredType() 3639ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance); 3650EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3666ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3677PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 3688ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3698PropertyDescriptorCollection ICustomTypeDescriptor.GetPropertiesFromRegisteredType() 3709ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance); 3720PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 3736ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3747object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) 3760ICustomTypeDescriptor desc = p.GetExtendedTypeDescriptor(_instance); 3807ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3834ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3846string? ICustomTypeDescriptor.GetComponentName() 3859ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3885ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3912ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 3940ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3966ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 3994ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4019ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4046ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 4074ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4102ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4130ICustomTypeDescriptor? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance); 4160ICustomTypeDescriptor? desc = p.GetTypeDescriptor(_objectType, _instance); 4187ICustomTypeDescriptor? 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)
589string? ICustomTypeDescriptor.GetClassName() 598string? ICustomTypeDescriptor.GetComponentName() 607AttributeCollection ICustomTypeDescriptor.GetAttributes() 612object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 617TypeConverter ICustomTypeDescriptor.GetConverter() 622PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 627PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 632PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 637EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 643EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 651EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 655object 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)
2429AttributeCollection ICustomTypeDescriptor.GetAttributes() 2445string? ICustomTypeDescriptor.GetClassName() 2455string? ICustomTypeDescriptor.GetComponentName() 2465TypeConverter? ICustomTypeDescriptor.GetConverter() 2472EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() 2479PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() 2489object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) 2500EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2505EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 2690PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() 2697PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) 2703object? ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
497PropertyDescriptorCollection 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)
958if (newObject is ICustomTypeDescriptor descriptor) 1053if (currentObject is ICustomTypeDescriptor descriptor) 2234return @object is ICustomTypeDescriptor descriptor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1371if (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)
1232AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType); 1237string ICustomTypeDescriptor.GetClassName() => PropertyType.Name; 1242string? ICustomTypeDescriptor.GetComponentName() => null; 1248TypeConverter? ICustomTypeDescriptor.GetConverter() => null; 1253EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => null; 1258PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() => this; 1264object? ICustomTypeDescriptor.GetEditor(Type editorBaseType) => null; 1271EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 1282EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty; 1290PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => _properties; 1299PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attributes) => _properties; 1307object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
1242AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn); 1244string? ICustomTypeDescriptor.GetClassName() => TypeDescriptor.GetClassName(DataGridViewColumn); 1246string? ICustomTypeDescriptor.GetComponentName() => TypeDescriptor.GetComponentName(DataGridViewColumn); 1249TypeConverter ICustomTypeDescriptor.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn); 1251EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => TypeDescriptor.GetDefaultEvent(DataGridViewColumn); 1253PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn); 1256object? ICustomTypeDescriptor.GetEditor(Type type) => TypeDescriptor.GetEditor(DataGridViewColumn, type); 1258EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn); 1260EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!); 1263PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() => ((ICustomTypeDescriptor)this).GetProperties(null); 1266PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[]? attrs) 1303object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor? pd) =>
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\DesignerHostTests.cs (3)
652Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict); 745ICustomTypeDescriptor descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent)); 846ICustomTypeDescriptor descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
System.Windows.Forms.Tests (113)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
23ICustomTypeDescriptor customTypeDescriptor = control; 39ICustomTypeDescriptor customTypeDescriptor = control; 55ICustomTypeDescriptor customTypeDescriptor = control; 71ICustomTypeDescriptor customTypeDescriptor = control; 87ICustomTypeDescriptor customTypeDescriptor = control; 103ICustomTypeDescriptor customTypeDescriptor = control; 114ICustomTypeDescriptor customTypeDescriptor = control; 125ICustomTypeDescriptor customTypeDescriptor = control; 136ICustomTypeDescriptor customTypeDescriptor = control; 147ICustomTypeDescriptor customTypeDescriptor = control; 167ICustomTypeDescriptor customTypeDescriptor = control; 188ICustomTypeDescriptor customTypeDescriptor = control; 199ICustomTypeDescriptor customTypeDescriptor = control; 210ICustomTypeDescriptor customTypeDescriptor = control; 221ICustomTypeDescriptor customTypeDescriptor = control; 232ICustomTypeDescriptor customTypeDescriptor = control; 243ICustomTypeDescriptor customTypeDescriptor = control; 254ICustomTypeDescriptor customTypeDescriptor = control; 265ICustomTypeDescriptor customTypeDescriptor = control; 276ICustomTypeDescriptor customTypeDescriptor = control; 287ICustomTypeDescriptor customTypeDescriptor = control; 301ICustomTypeDescriptor customTypeDescriptor = control; 312ICustomTypeDescriptor customTypeDescriptor = control; 367ICustomTypeDescriptor customTypeDescriptor = control; 378ICustomTypeDescriptor customTypeDescriptor = control; 392ICustomTypeDescriptor customTypeDescriptor = control; 415ICustomTypeDescriptor customTypeDescriptor = control; 438ICustomTypeDescriptor customTypeDescriptor = control; 464ICustomTypeDescriptor customTypeDescriptor = control; 499ICustomTypeDescriptor customTypeDescriptor = control; 523ICustomTypeDescriptor customTypeDescriptor = control; 542ICustomTypeDescriptor customTypeDescriptor = control; 567ICustomTypeDescriptor customTypeDescriptor = control; 603ICustomTypeDescriptor customTypeDescriptor = control; 634ICustomTypeDescriptor customTypeDescriptor = control; 655ICustomTypeDescriptor customTypeDescriptor = control; 682ICustomTypeDescriptor customTypeDescriptor = control; 703ICustomTypeDescriptor customTypeDescriptor = control; 730ICustomTypeDescriptor customTypeDescriptor = control; 756ICustomTypeDescriptor customTypeDescriptor = control; 768ICustomTypeDescriptor customTypeDescriptor = control; 783ICustomTypeDescriptor customTypeDescriptor = control; 802ICustomTypeDescriptor customTypeDescriptor = control; 819ICustomTypeDescriptor customTypeDescriptor = control; 848ICustomTypeDescriptor customTypeDescriptor = control; 879ICustomTypeDescriptor customTypeDescriptor = control; 908ICustomTypeDescriptor customTypeDescriptor = control; 940ICustomTypeDescriptor customTypeDescriptor = control; 969ICustomTypeDescriptor customTypeDescriptor = control; 988ICustomTypeDescriptor customTypeDescriptor = control; 1012ICustomTypeDescriptor customTypeDescriptor = control; 1031ICustomTypeDescriptor customTypeDescriptor = control; 1056ICustomTypeDescriptor customTypeDescriptor = control; 1083ICustomTypeDescriptor customTypeDescriptor = control; 1108ICustomTypeDescriptor customTypeDescriptor = control; 1133ICustomTypeDescriptor customTypeDescriptor = control; 1156ICustomTypeDescriptor customTypeDescriptor = control; 1181ICustomTypeDescriptor customTypeDescriptor = control; 1204ICustomTypeDescriptor customTypeDescriptor = control; 1232ICustomTypeDescriptor customTypeDescriptor = control; 1258ICustomTypeDescriptor customTypeDescriptor = control; 1286ICustomTypeDescriptor customTypeDescriptor = control; 1342ICustomTypeDescriptor customTypeDescriptor = control; 1353ICustomTypeDescriptor customTypeDescriptor = control;
System\Windows\Forms\AxHostTests.cs (32)
2332ICustomTypeDescriptor customTypeDescriptor = control; 2355ICustomTypeDescriptor customTypeDescriptor = control; 2376ICustomTypeDescriptor customTypeDescriptor = control; 2397ICustomTypeDescriptor customTypeDescriptor = control; 2416ICustomTypeDescriptor customTypeDescriptor = control; 2437ICustomTypeDescriptor customTypeDescriptor = control; 2456ICustomTypeDescriptor customTypeDescriptor = control; 2477ICustomTypeDescriptor customTypeDescriptor = control; 2496ICustomTypeDescriptor customTypeDescriptor = control; 2519ICustomTypeDescriptor customTypeDescriptor = control; 2540ICustomTypeDescriptor customTypeDescriptor = control; 2563ICustomTypeDescriptor customTypeDescriptor = control; 2588ICustomTypeDescriptor customTypeDescriptor = control; 2613ICustomTypeDescriptor customTypeDescriptor = control; 2632ICustomTypeDescriptor customTypeDescriptor = control; 2657ICustomTypeDescriptor customTypeDescriptor = control; 2688ICustomTypeDescriptor customTypeDescriptor = control; 2714ICustomTypeDescriptor customTypeDescriptor = control; 2737ICustomTypeDescriptor customTypeDescriptor = control; 2762ICustomTypeDescriptor customTypeDescriptor = control; 2785ICustomTypeDescriptor customTypeDescriptor = control; 2810ICustomTypeDescriptor customTypeDescriptor = control; 2833ICustomTypeDescriptor customTypeDescriptor = control; 2856ICustomTypeDescriptor customTypeDescriptor = control; 2887ICustomTypeDescriptor customTypeDescriptor = control; 2913ICustomTypeDescriptor customTypeDescriptor = control; 2936ICustomTypeDescriptor customTypeDescriptor = control; 2961ICustomTypeDescriptor customTypeDescriptor = control; 2984ICustomTypeDescriptor customTypeDescriptor = control; 3009ICustomTypeDescriptor customTypeDescriptor = control; 3041ICustomTypeDescriptor customTypeDescriptor = control; 3063ICustomTypeDescriptor customTypeDescriptor = control;
System\Windows\Forms\ButtonBaseTests.cs (1)
666Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
96private readonly ICustomTypeDescriptor _descriptor;
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1897public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 1899Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
315public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 317Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (8)
191yield return new object[] { new ICustomTypeDescriptorPropertyClass(), "Property", typeof(ICustomTypeDescriptor) }; 198Mock<ICustomTypeDescriptor> customTypeDescriptor = new(MockBehavior.Strict); 252yield return new object[] { new List<ICustomTypeDescriptor>(), Array.Empty<string>() }; 253yield return new object[] { typeof(IList<ICustomTypeDescriptor>), new string[] { nameof(ICustomTypeDescriptor.RequireRegisteredTypes) } }; 732public ICustomTypeDescriptor Property { get; set; } 944EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 949PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties()
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2151public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 2153Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\TabPageTests.cs (1)
798Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict);