17 implementations of ICustomTypeDescriptor
System.ComponentModel.TypeConverter (5)
System\ComponentModel\CustomTypeDescriptor.cs (1)
8
public abstract class CustomTypeDescriptor :
ICustomTypeDescriptor
System\ComponentModel\TypeDescriptor.cs (4)
2799
private sealed class ComNativeTypeDescriptor :
ICustomTypeDescriptor
3073
private sealed class MergedTypeDescriptor :
ICustomTypeDescriptor
3414
private readonly struct DefaultExtendedTypeDescriptor :
ICustomTypeDescriptor
3771
private readonly struct DefaultTypeDescriptor :
ICustomTypeDescriptor
System.Data.Common (5)
System\Data\Common\DataRecordInternal.cs (1)
11
internal sealed class DataRecordInternal : DbDataRecord,
ICustomTypeDescriptor
System\Data\Common\DbConnectionStringBuilder.cs (1)
22
public class DbConnectionStringBuilder : IDictionary,
ICustomTypeDescriptor
System\Data\Common\DbDataRecord.cs (1)
9
public abstract class DbDataRecord :
ICustomTypeDescriptor
, IDataRecord
System\Data\DataRowView.cs (1)
9
public class DataRowView :
ICustomTypeDescriptor
, IEditableObject, IDataErrorInfo, INotifyPropertyChanged
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
9
internal sealed class DataViewManagerListItemTypeDescriptor :
ICustomTypeDescriptor
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.cs (1)
27
public abstract unsafe partial class AxHost : Control, ISupportInitialize,
ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
16
private sealed unsafe class ComTypeDescriptor :
ICustomTypeDescriptor
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
16
private sealed class NullTypeDescriptor :
ICustomTypeDescriptor
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1118
private class SelectionWrapper : PropertyDescriptor,
ICustomTypeDescriptor
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1201
internal class ListBoxItem :
ICustomTypeDescriptor
, IComponent
System.Windows.Forms.Tests (2)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
108
private class CustomDescriptor :
ICustomTypeDescriptor
System\Windows\Forms\ListBindingHelperTests.cs (1)
767
public 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)
217
if (item is
ICustomTypeDescriptor
)
System\Windows\PropertyPath.cs (1)
604
if (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)
50
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
52
ICustomTypeDescriptor
? baseDescriptor = base.GetTypeDescriptor(objectType, instance);
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
20
ICustomTypeDescriptor
? parent,
System.ComponentModel.TypeConverter (134)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
20
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance)
28
public XTypeDescriptor(
ICustomTypeDescriptor
? parent) : base(parent)
System\ComponentModel\CustomTypeDescriptor.cs (5)
10
private readonly
ICustomTypeDescriptor
? _parent;
34
protected CustomTypeDescriptor(
ICustomTypeDescriptor
? parent)
272
/// <see cref="
ICustomTypeDescriptor
.GetConverterFromRegisteredType()"/>,
273
/// <see cref="
ICustomTypeDescriptor
.GetEventsFromRegisteredType()"/>, and
274
/// <see cref="
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()"/>.
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (3)
84
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
117
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
128
public 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)
370
if (target is
ICustomTypeDescriptor
td)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
823
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
829
public override
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
1034
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
System\ComponentModel\TypeDescriptionProvider.cs (9)
108
public virtual
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
132
public virtual
ICustomTypeDescriptor
GetExtendedTypeDescriptorFromRegisteredType(object instance)
252
public
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType)
266
public
ICustomTypeDescriptor
? GetTypeDescriptor(object instance)
287
public virtual
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
305
public
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType)
325
public
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(object instance)
356
public virtual
ICustomTypeDescriptor
? GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
369
ICustomTypeDescriptor
? Forward() => GetTypeDescriptor(objectType, instance);
System\ComponentModel\TypeDescriptor.cs (108)
729
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
742
if (component is
ICustomTypeDescriptor
)
746
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
764
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
999
internal static
ICustomTypeDescriptor
? GetDescriptor(object component, bool noCustomTypeDesc)
1006
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptor(component);
1007
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1016
internal static
ICustomTypeDescriptor
? GetDescriptorFromRegisteredType(object component)
1018
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptorFromRegisteredType(component);
1019
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1032
internal static
ICustomTypeDescriptor
GetExtendedDescriptor(object component)
1042
internal static
ICustomTypeDescriptor
GetExtendedDescriptorFromRegisteredType(object component)
1204
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1217
if (component is
ICustomTypeDescriptor
)
1222
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1240
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1461
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1474
if (component is
ICustomTypeDescriptor
)
1479
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1497
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1554
ICustomTypeDescriptor
typeDesc = GetDescriptorFromRegisteredType(component)!;
1557
if (component is
ICustomTypeDescriptor
)
1567
ICustomTypeDescriptor
extDesc = GetExtendedDescriptorFromRegisteredType(component);
2778
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
2815
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => _handler.GetAttributes(_instance);
2817
string
ICustomTypeDescriptor
.GetClassName() => _handler.GetClassName(_instance);
2819
string?
ICustomTypeDescriptor
.GetComponentName() => null;
2822
TypeConverter
ICustomTypeDescriptor
.GetConverter() => _handler.GetConverter(_instance);
2825
EventDescriptor
ICustomTypeDescriptor
.GetDefaultEvent()
2831
PropertyDescriptor
ICustomTypeDescriptor
.GetDefaultProperty()
2837
object
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
2842
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
2848
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
2854
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
2860
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
2865
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
2889
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
2905
internal AttributeTypeDescriptor(Attribute[] attrs,
ICustomTypeDescriptor
? parent) : base(parent)
3061
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
3075
private readonly
ICustomTypeDescriptor
_primary;
3076
private readonly
ICustomTypeDescriptor
_secondary;
3081
internal MergedTypeDescriptor(
ICustomTypeDescriptor
primary,
ICustomTypeDescriptor
secondary)
3090
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3101
string
ICustomTypeDescriptor
.GetClassName()
3112
string?
ICustomTypeDescriptor
.GetComponentName()
3121
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3133
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3142
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3151
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3163
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3175
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3187
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3199
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3212
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3281
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
3293
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptorFromRegisteredType(object instance)
3355
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, object? instance)
3371
public override
ICustomTypeDescriptor
GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
3389
ICustomTypeDescriptor
Forward() => GetTypeDescriptor(objectType, instance);
3433
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3445
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3456
string?
ICustomTypeDescriptor
.GetClassName()
3468
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3478
string?
ICustomTypeDescriptor
.GetComponentName()
3490
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3499
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3511
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3521
TypeConverter
ICustomTypeDescriptor
.GetConverterFromRegisteredType()
3533
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_instance);
3544
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3556
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3565
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3576
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3585
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3598
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3607
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3618
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3628
EventDescriptorCollection
ICustomTypeDescriptor
.GetEventsFromRegisteredType()
3639
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3650
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3666
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3677
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3688
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3698
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()
3709
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3720
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3736
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3747
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3760
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3807
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3834
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3846
string?
ICustomTypeDescriptor
.GetComponentName()
3859
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3885
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3912
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
3940
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3966
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3994
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4019
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4046
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4074
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4102
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4130
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4160
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4187
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
System.Data.Common (63)
System\Data\Common\DataRecordInternal.cs (13)
305
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
310
string?
ICustomTypeDescriptor
.GetClassName()
315
string?
ICustomTypeDescriptor
.GetComponentName()
321
TypeConverter?
ICustomTypeDescriptor
.GetConverter()
327
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
333
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
339
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
344
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
350
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
356
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
358
return ((
ICustomTypeDescriptor
)this).GetProperties(null);
362
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
365
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbConnectionStringBuilder.cs (12)
589
string?
ICustomTypeDescriptor
.GetClassName()
598
string?
ICustomTypeDescriptor
.GetComponentName()
607
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
612
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
617
TypeConverter
ICustomTypeDescriptor
.GetConverter()
622
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
627
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
632
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
637
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
643
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
651
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
655
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Data\Common\DbDataRecord.cs (13)
73
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
75
string?
ICustomTypeDescriptor
.GetClassName() => null;
77
string?
ICustomTypeDescriptor
.GetComponentName() => null;
80
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
83
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
86
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
89
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
91
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
94
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
97
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() =>
98
((
ICustomTypeDescriptor
)this).GetProperties(null);
101
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
104
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataRowView.cs (13)
232
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
233
string?
ICustomTypeDescriptor
.GetClassName() => null;
234
string?
ICustomTypeDescriptor
.GetComponentName() => null;
237
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
240
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
243
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
246
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
248
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
251
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
254
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => ((
ICustomTypeDescriptor
)this).GetProperties(null);
257
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
260
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Data\DataViewManagerListItemTypeDescriptor.cs (12)
34
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new AttributeCollection(null);
40
string?
ICustomTypeDescriptor
.GetClassName() => null;
46
string?
ICustomTypeDescriptor
.GetComponentName() => null;
52
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
58
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
64
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
70
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
78
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new EventDescriptorCollection(null);
88
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) =>
98
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() =>
109
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) =>
139
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System.Private.Windows.Core.TestUtilities (2)
CustomConverter.cs (2)
50
public override
ICustomTypeDescriptor
GetTypeDescriptor(
58
public TypeConverterProvider(
ICustomTypeDescriptor
? parent, TypeConverter converter) : base(parent)
System.Windows.Forms (56)
System\Windows\Forms\ActiveX\AxHost.cs (12)
2429
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
2445
string?
ICustomTypeDescriptor
.GetClassName()
2455
string?
ICustomTypeDescriptor
.GetComponentName()
2465
TypeConverter?
ICustomTypeDescriptor
.GetConverter()
2472
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
2479
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
2489
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
2500
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
2505
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
2690
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
2697
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
2703
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
497
PropertyDescriptorCollection props = ((
ICustomTypeDescriptor
)_host).GetProperties();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
44
if (target is
ICustomTypeDescriptor
customTypeDescriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
445
if (component is
ICustomTypeDescriptor
descriptor)
608
if (component is
ICustomTypeDescriptor
descriptor)
793
if (component is
ICustomTypeDescriptor
descriptor)
827
if (owner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
42
if (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.
27
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => GetAttributes(_instance);
29
string?
ICustomTypeDescriptor
.GetClassName() => GetClassName(_instance);
31
string?
ICustomTypeDescriptor
.GetComponentName()
38
TypeConverter
ICustomTypeDescriptor
.GetConverter() => GetIComponentConverter();
41
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
44
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => _handler.GetDefaultProperty(_instance);
47
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => GetEditor(_instance, editorBaseType);
49
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => new(null);
52
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => new(null);
55
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => _handler.GetProperties(_instance);
58
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => _handler.GetProperties(_instance);
60
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
65
public override
ICustomTypeDescriptor
? GetTypeDescriptor(
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (12)
18
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => new(s_staticAttributes);
19
string?
ICustomTypeDescriptor
.GetClassName() => string.Empty;
20
string?
ICustomTypeDescriptor
.GetComponentName() => string.Empty;
22
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => GetIComponentConverter();
24
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
26
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => null;
28
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
29
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => EventDescriptorCollection.Empty;
31
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
33
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => PropertyDescriptorCollection.Empty;
35
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => PropertyDescriptorCollection.Empty;
36
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
958
if (newObject is
ICustomTypeDescriptor
descriptor)
1053
if (currentObject is
ICustomTypeDescriptor
descriptor)
2234
return @object is
ICustomTypeDescriptor
descriptor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1371
if (value is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
183
if (propertyOwner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
258
if (owner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
334
if (owner is
ICustomTypeDescriptor
descriptor)
400
if (owner is
ICustomTypeDescriptor
descriptor)
728
if (realOwner is
ICustomTypeDescriptor
descriptor)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
296
if (dmProp is null || dmProp.PropertyType is
ICustomTypeDescriptor
)
590
if (indexer is not null && !typeof(
ICustomTypeDescriptor
).IsAssignableFrom(indexer.PropertyType))
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (12)
1232
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType);
1237
string
ICustomTypeDescriptor
.GetClassName() => PropertyType.Name;
1242
string?
ICustomTypeDescriptor
.GetComponentName() => null;
1248
TypeConverter?
ICustomTypeDescriptor
.GetConverter() => null;
1253
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => null;
1258
PropertyDescriptor
ICustomTypeDescriptor
.GetDefaultProperty() => this;
1264
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType) => null;
1271
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
1282
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
1290
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => _properties;
1299
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes) => _properties;
1307
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => this;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (13)
1242
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn);
1244
string?
ICustomTypeDescriptor
.GetClassName() => TypeDescriptor.GetClassName(DataGridViewColumn);
1246
string?
ICustomTypeDescriptor
.GetComponentName() => TypeDescriptor.GetComponentName(DataGridViewColumn);
1249
TypeConverter
ICustomTypeDescriptor
.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn);
1251
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent() => TypeDescriptor.GetDefaultEvent(DataGridViewColumn);
1253
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn);
1256
object?
ICustomTypeDescriptor
.GetEditor(Type type) => TypeDescriptor.GetEditor(DataGridViewColumn, type);
1258
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn);
1260
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!);
1263
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties() => ((
ICustomTypeDescriptor
)this).GetProperties(null);
1266
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attrs)
1303
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) =>
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\DesignerHostTests.cs (3)
650
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
743
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
844
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
System.Windows.Forms.Tests (113)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
21
ICustomTypeDescriptor
customTypeDescriptor = control;
37
ICustomTypeDescriptor
customTypeDescriptor = control;
53
ICustomTypeDescriptor
customTypeDescriptor = control;
69
ICustomTypeDescriptor
customTypeDescriptor = control;
85
ICustomTypeDescriptor
customTypeDescriptor = control;
101
ICustomTypeDescriptor
customTypeDescriptor = control;
112
ICustomTypeDescriptor
customTypeDescriptor = control;
123
ICustomTypeDescriptor
customTypeDescriptor = control;
134
ICustomTypeDescriptor
customTypeDescriptor = control;
145
ICustomTypeDescriptor
customTypeDescriptor = control;
165
ICustomTypeDescriptor
customTypeDescriptor = control;
186
ICustomTypeDescriptor
customTypeDescriptor = control;
197
ICustomTypeDescriptor
customTypeDescriptor = control;
208
ICustomTypeDescriptor
customTypeDescriptor = control;
219
ICustomTypeDescriptor
customTypeDescriptor = control;
230
ICustomTypeDescriptor
customTypeDescriptor = control;
241
ICustomTypeDescriptor
customTypeDescriptor = control;
252
ICustomTypeDescriptor
customTypeDescriptor = control;
263
ICustomTypeDescriptor
customTypeDescriptor = control;
274
ICustomTypeDescriptor
customTypeDescriptor = control;
285
ICustomTypeDescriptor
customTypeDescriptor = control;
299
ICustomTypeDescriptor
customTypeDescriptor = control;
310
ICustomTypeDescriptor
customTypeDescriptor = control;
365
ICustomTypeDescriptor
customTypeDescriptor = control;
376
ICustomTypeDescriptor
customTypeDescriptor = control;
390
ICustomTypeDescriptor
customTypeDescriptor = control;
413
ICustomTypeDescriptor
customTypeDescriptor = control;
436
ICustomTypeDescriptor
customTypeDescriptor = control;
462
ICustomTypeDescriptor
customTypeDescriptor = control;
497
ICustomTypeDescriptor
customTypeDescriptor = control;
521
ICustomTypeDescriptor
customTypeDescriptor = control;
540
ICustomTypeDescriptor
customTypeDescriptor = control;
565
ICustomTypeDescriptor
customTypeDescriptor = control;
601
ICustomTypeDescriptor
customTypeDescriptor = control;
632
ICustomTypeDescriptor
customTypeDescriptor = control;
653
ICustomTypeDescriptor
customTypeDescriptor = control;
680
ICustomTypeDescriptor
customTypeDescriptor = control;
701
ICustomTypeDescriptor
customTypeDescriptor = control;
728
ICustomTypeDescriptor
customTypeDescriptor = control;
754
ICustomTypeDescriptor
customTypeDescriptor = control;
766
ICustomTypeDescriptor
customTypeDescriptor = control;
781
ICustomTypeDescriptor
customTypeDescriptor = control;
800
ICustomTypeDescriptor
customTypeDescriptor = control;
817
ICustomTypeDescriptor
customTypeDescriptor = control;
846
ICustomTypeDescriptor
customTypeDescriptor = control;
877
ICustomTypeDescriptor
customTypeDescriptor = control;
906
ICustomTypeDescriptor
customTypeDescriptor = control;
938
ICustomTypeDescriptor
customTypeDescriptor = control;
967
ICustomTypeDescriptor
customTypeDescriptor = control;
986
ICustomTypeDescriptor
customTypeDescriptor = control;
1010
ICustomTypeDescriptor
customTypeDescriptor = control;
1029
ICustomTypeDescriptor
customTypeDescriptor = control;
1054
ICustomTypeDescriptor
customTypeDescriptor = control;
1081
ICustomTypeDescriptor
customTypeDescriptor = control;
1106
ICustomTypeDescriptor
customTypeDescriptor = control;
1131
ICustomTypeDescriptor
customTypeDescriptor = control;
1154
ICustomTypeDescriptor
customTypeDescriptor = control;
1179
ICustomTypeDescriptor
customTypeDescriptor = control;
1202
ICustomTypeDescriptor
customTypeDescriptor = control;
1230
ICustomTypeDescriptor
customTypeDescriptor = control;
1256
ICustomTypeDescriptor
customTypeDescriptor = control;
1284
ICustomTypeDescriptor
customTypeDescriptor = control;
1340
ICustomTypeDescriptor
customTypeDescriptor = control;
1351
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\AxHostTests.cs (32)
2330
ICustomTypeDescriptor
customTypeDescriptor = control;
2353
ICustomTypeDescriptor
customTypeDescriptor = control;
2374
ICustomTypeDescriptor
customTypeDescriptor = control;
2395
ICustomTypeDescriptor
customTypeDescriptor = control;
2414
ICustomTypeDescriptor
customTypeDescriptor = control;
2435
ICustomTypeDescriptor
customTypeDescriptor = control;
2454
ICustomTypeDescriptor
customTypeDescriptor = control;
2475
ICustomTypeDescriptor
customTypeDescriptor = control;
2494
ICustomTypeDescriptor
customTypeDescriptor = control;
2517
ICustomTypeDescriptor
customTypeDescriptor = control;
2538
ICustomTypeDescriptor
customTypeDescriptor = control;
2561
ICustomTypeDescriptor
customTypeDescriptor = control;
2586
ICustomTypeDescriptor
customTypeDescriptor = control;
2611
ICustomTypeDescriptor
customTypeDescriptor = control;
2630
ICustomTypeDescriptor
customTypeDescriptor = control;
2655
ICustomTypeDescriptor
customTypeDescriptor = control;
2686
ICustomTypeDescriptor
customTypeDescriptor = control;
2712
ICustomTypeDescriptor
customTypeDescriptor = control;
2735
ICustomTypeDescriptor
customTypeDescriptor = control;
2760
ICustomTypeDescriptor
customTypeDescriptor = control;
2783
ICustomTypeDescriptor
customTypeDescriptor = control;
2808
ICustomTypeDescriptor
customTypeDescriptor = control;
2831
ICustomTypeDescriptor
customTypeDescriptor = control;
2854
ICustomTypeDescriptor
customTypeDescriptor = control;
2885
ICustomTypeDescriptor
customTypeDescriptor = control;
2911
ICustomTypeDescriptor
customTypeDescriptor = control;
2934
ICustomTypeDescriptor
customTypeDescriptor = control;
2959
ICustomTypeDescriptor
customTypeDescriptor = control;
2982
ICustomTypeDescriptor
customTypeDescriptor = control;
3007
ICustomTypeDescriptor
customTypeDescriptor = control;
3039
ICustomTypeDescriptor
customTypeDescriptor = control;
3061
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\ButtonBaseTests.cs (1)
664
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
98
private readonly
ICustomTypeDescriptor
_descriptor;
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1895
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
1897
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
313
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
315
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (8)
189
yield return new object[] { new ICustomTypeDescriptorPropertyClass(), "Property", typeof(
ICustomTypeDescriptor
) };
196
Mock<
ICustomTypeDescriptor
> customTypeDescriptor = new(MockBehavior.Strict);
250
yield return new object[] { new List<
ICustomTypeDescriptor
>(), Array.Empty<string>() };
251
yield return new object[] { typeof(IList<
ICustomTypeDescriptor
>), new string[] { nameof(
ICustomTypeDescriptor
.RequireRegisteredTypes) } };
730
public
ICustomTypeDescriptor
Property { get; set; }
942
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
947
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2149
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
2151
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\TabPageTests.cs (1)
796
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);