17 implementations of ICustomTypeDescriptor
System.ComponentModel.TypeConverter (5)
System\ComponentModel\CustomTypeDescriptor.cs (1)
8
public abstract class CustomTypeDescriptor :
ICustomTypeDescriptor
System\ComponentModel\TypeDescriptor.cs (4)
2809
private sealed class ComNativeTypeDescriptor :
ICustomTypeDescriptor
3087
private sealed class MergedTypeDescriptor :
ICustomTypeDescriptor
3428
private readonly struct DefaultExtendedTypeDescriptor :
ICustomTypeDescriptor
3785
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)
25
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
407 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)
216
if (item is
ICustomTypeDescriptor
)
System\Windows\PropertyPath.cs (1)
603
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)
59
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(AllMembersAndInterfaces)] Type objectType, object? instance)
61
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(TypeDescriptor.AllMembersAndInterfaces)] 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(TypeDescriptor.AllMembersAndInterfaces)] 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(TypeDescriptor.AllMembersAndInterfaces)] 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(TypeDescriptor.AllMembersAndInterfaces)] Type objectType)
266
public
ICustomTypeDescriptor
? GetTypeDescriptor(object instance)
287
public virtual
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] 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)
739
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
752
if (component is
ICustomTypeDescriptor
)
756
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
774
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1009
internal static
ICustomTypeDescriptor
? GetDescriptor(object component, bool noCustomTypeDesc)
1016
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptor(component);
1017
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1026
internal static
ICustomTypeDescriptor
? GetDescriptorFromRegisteredType(object component)
1028
ICustomTypeDescriptor
? desc = NodeFor(component).GetTypeDescriptorFromRegisteredType(component);
1029
ICustomTypeDescriptor
? d = component as
ICustomTypeDescriptor
;
1042
internal static
ICustomTypeDescriptor
GetExtendedDescriptor(object component)
1052
internal static
ICustomTypeDescriptor
GetExtendedDescriptorFromRegisteredType(object component)
1214
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1227
if (component is
ICustomTypeDescriptor
)
1232
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1250
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1471
ICustomTypeDescriptor
typeDesc = GetDescriptor(component, noCustomTypeDesc)!;
1484
if (component is
ICustomTypeDescriptor
)
1489
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1507
ICustomTypeDescriptor
extDesc = GetExtendedDescriptor(component);
1564
ICustomTypeDescriptor
typeDesc = GetDescriptorFromRegisteredType(component)!;
1567
if (component is
ICustomTypeDescriptor
)
1577
ICustomTypeDescriptor
extDesc = GetExtendedDescriptorFromRegisteredType(component);
2788
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
2825
AttributeCollection
ICustomTypeDescriptor
.GetAttributes() => _handler.GetAttributes(_instance);
2827
string
ICustomTypeDescriptor
.GetClassName() => _handler.GetClassName(_instance);
2829
string?
ICustomTypeDescriptor
.GetComponentName() => null;
2832
TypeConverter
ICustomTypeDescriptor
.GetConverter() => _handler.GetConverter(_instance);
2835
EventDescriptor
ICustomTypeDescriptor
.GetDefaultEvent()
2841
PropertyDescriptor
ICustomTypeDescriptor
.GetDefaultProperty()
2847
object
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
2852
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
2858
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
2864
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
2870
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
2875
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd) => _instance;
2899
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
2915
internal AttributeTypeDescriptor(Attribute[] attrs,
ICustomTypeDescriptor
? parent) : base(parent)
3075
public override
ICustomTypeDescriptor
? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
3089
private readonly
ICustomTypeDescriptor
_primary;
3090
private readonly
ICustomTypeDescriptor
_secondary;
3095
internal MergedTypeDescriptor(
ICustomTypeDescriptor
primary,
ICustomTypeDescriptor
secondary)
3104
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3115
string
ICustomTypeDescriptor
.GetClassName()
3126
string?
ICustomTypeDescriptor
.GetComponentName()
3135
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3147
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3156
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3165
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3177
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3189
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3201
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3213
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3226
object?
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3295
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptor(object instance)
3307
public override
ICustomTypeDescriptor
GetExtendedTypeDescriptorFromRegisteredType(object instance)
3369
public override
ICustomTypeDescriptor
GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance)
3385
public override
ICustomTypeDescriptor
GetTypeDescriptorFromRegisteredType(Type objectType, object? instance)
3403
ICustomTypeDescriptor
Forward() => GetTypeDescriptor(objectType, instance);
3447
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
3459
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3470
string?
ICustomTypeDescriptor
.GetClassName()
3482
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3492
string?
ICustomTypeDescriptor
.GetComponentName()
3504
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3513
TypeConverter
ICustomTypeDescriptor
.GetConverter()
3525
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3535
TypeConverter
ICustomTypeDescriptor
.GetConverterFromRegisteredType()
3547
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_instance);
3558
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
3570
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3579
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
3590
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3599
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
3612
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3621
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
3632
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3642
EventDescriptorCollection
ICustomTypeDescriptor
.GetEventsFromRegisteredType()
3653
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3664
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
3680
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3691
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
3702
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3712
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetPropertiesFromRegisteredType()
3723
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptorFromRegisteredType(_instance);
3734
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
3750
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3761
object
ICustomTypeDescriptor
.GetPropertyOwner(PropertyDescriptor? pd)
3774
ICustomTypeDescriptor
desc = p.GetExtendedTypeDescriptor(_instance);
3821
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3848
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3860
string?
ICustomTypeDescriptor
.GetComponentName()
3873
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3899
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3926
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
3954
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
3980
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4008
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4033
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4060
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4088
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4116
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4144
ICustomTypeDescriptor
? desc = p.GetTypeDescriptorFromRegisteredType(_objectType, _instance);
4174
ICustomTypeDescriptor
? desc = p.GetTypeDescriptor(_objectType, _instance);
4201
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)
592
string?
ICustomTypeDescriptor
.GetClassName()
601
string?
ICustomTypeDescriptor
.GetComponentName()
610
AttributeCollection
ICustomTypeDescriptor
.GetAttributes()
615
object?
ICustomTypeDescriptor
.GetEditor(Type editorBaseType)
620
TypeConverter
ICustomTypeDescriptor
.GetConverter()
625
PropertyDescriptor?
ICustomTypeDescriptor
.GetDefaultProperty()
630
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties()
635
PropertyDescriptorCollection
ICustomTypeDescriptor
.GetProperties(Attribute[]? attributes)
640
EventDescriptor?
ICustomTypeDescriptor
.GetDefaultEvent()
646
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents()
654
EventDescriptorCollection
ICustomTypeDescriptor
.GetEvents(Attribute[]? attributes)
658
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)
500
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)
955
if (newObject is
ICustomTypeDescriptor
descriptor)
1050
if (currentObject is
ICustomTypeDescriptor
descriptor)
2228
return @object is
ICustomTypeDescriptor
descriptor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1365
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 (7)
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\Design\ControlCommandSetTests.cs (3)
153
public override
ICustomTypeDescriptor
? GetTypeDescriptor(Type objectType, object? instance)
155
var
baseDescriptor = _baseProvider.GetTypeDescriptor(objectType, instance);
164
public MockCustomTypeDescriptor(
ICustomTypeDescriptor
parent, PropertyDescriptor snapToGridProperty)
System\Windows\Forms\Design\EditorServiceContextTests.cs (1)
201
public override
ICustomTypeDescriptor
? GetTypeDescriptor(Type objectType, object? instance) => new TypeDescriptorStub(_property);
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);