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)
106
private class CustomDescriptor :
ICustomTypeDescriptor
System\Windows\Forms\ListBindingHelperTests.cs (1)
769
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)
652
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
745
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
846
ICustomTypeDescriptor
descriptor = TypeDescriptor.GetProvider(typeof(RootDesignerComponent)).GetTypeDescriptor(typeof(RootDesignerComponent));
System.Windows.Forms.Tests (113)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (64)
23
ICustomTypeDescriptor
customTypeDescriptor = control;
39
ICustomTypeDescriptor
customTypeDescriptor = control;
55
ICustomTypeDescriptor
customTypeDescriptor = control;
71
ICustomTypeDescriptor
customTypeDescriptor = control;
87
ICustomTypeDescriptor
customTypeDescriptor = control;
103
ICustomTypeDescriptor
customTypeDescriptor = control;
114
ICustomTypeDescriptor
customTypeDescriptor = control;
125
ICustomTypeDescriptor
customTypeDescriptor = control;
136
ICustomTypeDescriptor
customTypeDescriptor = control;
147
ICustomTypeDescriptor
customTypeDescriptor = control;
167
ICustomTypeDescriptor
customTypeDescriptor = control;
188
ICustomTypeDescriptor
customTypeDescriptor = control;
199
ICustomTypeDescriptor
customTypeDescriptor = control;
210
ICustomTypeDescriptor
customTypeDescriptor = control;
221
ICustomTypeDescriptor
customTypeDescriptor = control;
232
ICustomTypeDescriptor
customTypeDescriptor = control;
243
ICustomTypeDescriptor
customTypeDescriptor = control;
254
ICustomTypeDescriptor
customTypeDescriptor = control;
265
ICustomTypeDescriptor
customTypeDescriptor = control;
276
ICustomTypeDescriptor
customTypeDescriptor = control;
287
ICustomTypeDescriptor
customTypeDescriptor = control;
301
ICustomTypeDescriptor
customTypeDescriptor = control;
312
ICustomTypeDescriptor
customTypeDescriptor = control;
367
ICustomTypeDescriptor
customTypeDescriptor = control;
378
ICustomTypeDescriptor
customTypeDescriptor = control;
392
ICustomTypeDescriptor
customTypeDescriptor = control;
415
ICustomTypeDescriptor
customTypeDescriptor = control;
438
ICustomTypeDescriptor
customTypeDescriptor = control;
464
ICustomTypeDescriptor
customTypeDescriptor = control;
499
ICustomTypeDescriptor
customTypeDescriptor = control;
523
ICustomTypeDescriptor
customTypeDescriptor = control;
542
ICustomTypeDescriptor
customTypeDescriptor = control;
567
ICustomTypeDescriptor
customTypeDescriptor = control;
603
ICustomTypeDescriptor
customTypeDescriptor = control;
634
ICustomTypeDescriptor
customTypeDescriptor = control;
655
ICustomTypeDescriptor
customTypeDescriptor = control;
682
ICustomTypeDescriptor
customTypeDescriptor = control;
703
ICustomTypeDescriptor
customTypeDescriptor = control;
730
ICustomTypeDescriptor
customTypeDescriptor = control;
756
ICustomTypeDescriptor
customTypeDescriptor = control;
768
ICustomTypeDescriptor
customTypeDescriptor = control;
783
ICustomTypeDescriptor
customTypeDescriptor = control;
802
ICustomTypeDescriptor
customTypeDescriptor = control;
819
ICustomTypeDescriptor
customTypeDescriptor = control;
848
ICustomTypeDescriptor
customTypeDescriptor = control;
879
ICustomTypeDescriptor
customTypeDescriptor = control;
908
ICustomTypeDescriptor
customTypeDescriptor = control;
940
ICustomTypeDescriptor
customTypeDescriptor = control;
969
ICustomTypeDescriptor
customTypeDescriptor = control;
988
ICustomTypeDescriptor
customTypeDescriptor = control;
1012
ICustomTypeDescriptor
customTypeDescriptor = control;
1031
ICustomTypeDescriptor
customTypeDescriptor = control;
1056
ICustomTypeDescriptor
customTypeDescriptor = control;
1083
ICustomTypeDescriptor
customTypeDescriptor = control;
1108
ICustomTypeDescriptor
customTypeDescriptor = control;
1133
ICustomTypeDescriptor
customTypeDescriptor = control;
1156
ICustomTypeDescriptor
customTypeDescriptor = control;
1181
ICustomTypeDescriptor
customTypeDescriptor = control;
1204
ICustomTypeDescriptor
customTypeDescriptor = control;
1232
ICustomTypeDescriptor
customTypeDescriptor = control;
1258
ICustomTypeDescriptor
customTypeDescriptor = control;
1286
ICustomTypeDescriptor
customTypeDescriptor = control;
1342
ICustomTypeDescriptor
customTypeDescriptor = control;
1353
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\AxHostTests.cs (32)
2332
ICustomTypeDescriptor
customTypeDescriptor = control;
2355
ICustomTypeDescriptor
customTypeDescriptor = control;
2376
ICustomTypeDescriptor
customTypeDescriptor = control;
2397
ICustomTypeDescriptor
customTypeDescriptor = control;
2416
ICustomTypeDescriptor
customTypeDescriptor = control;
2437
ICustomTypeDescriptor
customTypeDescriptor = control;
2456
ICustomTypeDescriptor
customTypeDescriptor = control;
2477
ICustomTypeDescriptor
customTypeDescriptor = control;
2496
ICustomTypeDescriptor
customTypeDescriptor = control;
2519
ICustomTypeDescriptor
customTypeDescriptor = control;
2540
ICustomTypeDescriptor
customTypeDescriptor = control;
2563
ICustomTypeDescriptor
customTypeDescriptor = control;
2588
ICustomTypeDescriptor
customTypeDescriptor = control;
2613
ICustomTypeDescriptor
customTypeDescriptor = control;
2632
ICustomTypeDescriptor
customTypeDescriptor = control;
2657
ICustomTypeDescriptor
customTypeDescriptor = control;
2688
ICustomTypeDescriptor
customTypeDescriptor = control;
2714
ICustomTypeDescriptor
customTypeDescriptor = control;
2737
ICustomTypeDescriptor
customTypeDescriptor = control;
2762
ICustomTypeDescriptor
customTypeDescriptor = control;
2785
ICustomTypeDescriptor
customTypeDescriptor = control;
2810
ICustomTypeDescriptor
customTypeDescriptor = control;
2833
ICustomTypeDescriptor
customTypeDescriptor = control;
2856
ICustomTypeDescriptor
customTypeDescriptor = control;
2887
ICustomTypeDescriptor
customTypeDescriptor = control;
2913
ICustomTypeDescriptor
customTypeDescriptor = control;
2936
ICustomTypeDescriptor
customTypeDescriptor = control;
2961
ICustomTypeDescriptor
customTypeDescriptor = control;
2984
ICustomTypeDescriptor
customTypeDescriptor = control;
3009
ICustomTypeDescriptor
customTypeDescriptor = control;
3041
ICustomTypeDescriptor
customTypeDescriptor = control;
3063
ICustomTypeDescriptor
customTypeDescriptor = control;
System\Windows\Forms\ButtonBaseTests.cs (1)
666
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
96
private readonly
ICustomTypeDescriptor
_descriptor;
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1897
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
1899
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
315
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
317
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (8)
191
yield return new object[] { new ICustomTypeDescriptorPropertyClass(), "Property", typeof(
ICustomTypeDescriptor
) };
198
Mock<
ICustomTypeDescriptor
> customTypeDescriptor = new(MockBehavior.Strict);
252
yield return new object[] { new List<
ICustomTypeDescriptor
>(), Array.Empty<string>() };
253
yield return new object[] { typeof(IList<
ICustomTypeDescriptor
>), new string[] { nameof(
ICustomTypeDescriptor
.RequireRegisteredTypes) } };
732
public
ICustomTypeDescriptor
Property { get; set; }
944
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
949
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2151
public override
ICustomTypeDescriptor
GetTypeDescriptor(Type objectType, object instance)
2153
Mock<
ICustomTypeDescriptor
> mockDescriptor = new(MockBehavior.Strict);
System\Windows\Forms\TabPageTests.cs (1)
798
Mock<
ICustomTypeDescriptor
> mockCustomTypeDescriptor = new(MockBehavior.Strict);