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)
108private class CustomDescriptor : ICustomTypeDescriptor
System\Windows\Forms\ListBindingHelperTests.cs (1)
767public 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)
650Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict); 743ICustomTypeDescriptor descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent)); 844ICustomTypeDescriptor descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
System.Windows.Forms.Tests (113)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
21ICustomTypeDescriptor customTypeDescriptor = control; 37ICustomTypeDescriptor customTypeDescriptor = control; 53ICustomTypeDescriptor customTypeDescriptor = control; 69ICustomTypeDescriptor customTypeDescriptor = control; 85ICustomTypeDescriptor customTypeDescriptor = control; 101ICustomTypeDescriptor customTypeDescriptor = control; 112ICustomTypeDescriptor customTypeDescriptor = control; 123ICustomTypeDescriptor customTypeDescriptor = control; 134ICustomTypeDescriptor customTypeDescriptor = control; 145ICustomTypeDescriptor customTypeDescriptor = control; 165ICustomTypeDescriptor customTypeDescriptor = control; 186ICustomTypeDescriptor customTypeDescriptor = control; 197ICustomTypeDescriptor customTypeDescriptor = control; 208ICustomTypeDescriptor customTypeDescriptor = control; 219ICustomTypeDescriptor customTypeDescriptor = control; 230ICustomTypeDescriptor customTypeDescriptor = control; 241ICustomTypeDescriptor customTypeDescriptor = control; 252ICustomTypeDescriptor customTypeDescriptor = control; 263ICustomTypeDescriptor customTypeDescriptor = control; 274ICustomTypeDescriptor customTypeDescriptor = control; 285ICustomTypeDescriptor customTypeDescriptor = control; 299ICustomTypeDescriptor customTypeDescriptor = control; 310ICustomTypeDescriptor customTypeDescriptor = control; 365ICustomTypeDescriptor customTypeDescriptor = control; 376ICustomTypeDescriptor customTypeDescriptor = control; 390ICustomTypeDescriptor customTypeDescriptor = control; 413ICustomTypeDescriptor customTypeDescriptor = control; 436ICustomTypeDescriptor customTypeDescriptor = control; 462ICustomTypeDescriptor customTypeDescriptor = control; 497ICustomTypeDescriptor customTypeDescriptor = control; 521ICustomTypeDescriptor customTypeDescriptor = control; 540ICustomTypeDescriptor customTypeDescriptor = control; 565ICustomTypeDescriptor customTypeDescriptor = control; 601ICustomTypeDescriptor customTypeDescriptor = control; 632ICustomTypeDescriptor customTypeDescriptor = control; 653ICustomTypeDescriptor customTypeDescriptor = control; 680ICustomTypeDescriptor customTypeDescriptor = control; 701ICustomTypeDescriptor customTypeDescriptor = control; 728ICustomTypeDescriptor customTypeDescriptor = control; 754ICustomTypeDescriptor customTypeDescriptor = control; 766ICustomTypeDescriptor customTypeDescriptor = control; 781ICustomTypeDescriptor customTypeDescriptor = control; 800ICustomTypeDescriptor customTypeDescriptor = control; 817ICustomTypeDescriptor customTypeDescriptor = control; 846ICustomTypeDescriptor customTypeDescriptor = control; 877ICustomTypeDescriptor customTypeDescriptor = control; 906ICustomTypeDescriptor customTypeDescriptor = control; 938ICustomTypeDescriptor customTypeDescriptor = control; 967ICustomTypeDescriptor customTypeDescriptor = control; 986ICustomTypeDescriptor customTypeDescriptor = control; 1010ICustomTypeDescriptor customTypeDescriptor = control; 1029ICustomTypeDescriptor customTypeDescriptor = control; 1054ICustomTypeDescriptor customTypeDescriptor = control; 1081ICustomTypeDescriptor customTypeDescriptor = control; 1106ICustomTypeDescriptor customTypeDescriptor = control; 1131ICustomTypeDescriptor customTypeDescriptor = control; 1154ICustomTypeDescriptor customTypeDescriptor = control; 1179ICustomTypeDescriptor customTypeDescriptor = control; 1202ICustomTypeDescriptor customTypeDescriptor = control; 1230ICustomTypeDescriptor customTypeDescriptor = control; 1256ICustomTypeDescriptor customTypeDescriptor = control; 1284ICustomTypeDescriptor customTypeDescriptor = control; 1340ICustomTypeDescriptor customTypeDescriptor = control; 1351ICustomTypeDescriptor customTypeDescriptor = control;
System\Windows\Forms\AxHostTests.cs (32)
2330ICustomTypeDescriptor customTypeDescriptor = control; 2353ICustomTypeDescriptor customTypeDescriptor = control; 2374ICustomTypeDescriptor customTypeDescriptor = control; 2395ICustomTypeDescriptor customTypeDescriptor = control; 2414ICustomTypeDescriptor customTypeDescriptor = control; 2435ICustomTypeDescriptor customTypeDescriptor = control; 2454ICustomTypeDescriptor customTypeDescriptor = control; 2475ICustomTypeDescriptor customTypeDescriptor = control; 2494ICustomTypeDescriptor customTypeDescriptor = control; 2517ICustomTypeDescriptor customTypeDescriptor = control; 2538ICustomTypeDescriptor customTypeDescriptor = control; 2561ICustomTypeDescriptor customTypeDescriptor = control; 2586ICustomTypeDescriptor customTypeDescriptor = control; 2611ICustomTypeDescriptor customTypeDescriptor = control; 2630ICustomTypeDescriptor customTypeDescriptor = control; 2655ICustomTypeDescriptor customTypeDescriptor = control; 2686ICustomTypeDescriptor customTypeDescriptor = control; 2712ICustomTypeDescriptor customTypeDescriptor = control; 2735ICustomTypeDescriptor customTypeDescriptor = control; 2760ICustomTypeDescriptor customTypeDescriptor = control; 2783ICustomTypeDescriptor customTypeDescriptor = control; 2808ICustomTypeDescriptor customTypeDescriptor = control; 2831ICustomTypeDescriptor customTypeDescriptor = control; 2854ICustomTypeDescriptor customTypeDescriptor = control; 2885ICustomTypeDescriptor customTypeDescriptor = control; 2911ICustomTypeDescriptor customTypeDescriptor = control; 2934ICustomTypeDescriptor customTypeDescriptor = control; 2959ICustomTypeDescriptor customTypeDescriptor = control; 2982ICustomTypeDescriptor customTypeDescriptor = control; 3007ICustomTypeDescriptor customTypeDescriptor = control; 3039ICustomTypeDescriptor customTypeDescriptor = control; 3061ICustomTypeDescriptor customTypeDescriptor = control;
System\Windows\Forms\ButtonBaseTests.cs (1)
664Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
98private readonly ICustomTypeDescriptor _descriptor;
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1895public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 1897Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
313public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 315Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (8)
189yield return new object[] { new ICustomTypeDescriptorPropertyClass(), "Property", typeof(ICustomTypeDescriptor) }; 196Mock<ICustomTypeDescriptor> customTypeDescriptor = new(MockBehavior.Strict); 250yield return new object[] { new List<ICustomTypeDescriptor>(), Array.Empty<string>() }; 251yield return new object[] { typeof(IList<ICustomTypeDescriptor>), new string[] { nameof(ICustomTypeDescriptor.RequireRegisteredTypes) } }; 730public ICustomTypeDescriptor Property { get; set; } 942EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 947PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties()
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2149public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) 2151Mock<ICustomTypeDescriptor> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\TabPageTests.cs (1)
796Mock<ICustomTypeDescriptor> mockCustomTypeDescriptor = new(MockBehavior.Strict);