24 instantiations of EventDescriptorCollection
System.ComponentModel.TypeConverter (14)
System\ComponentModel\EventDescriptorCollection.cs (5)
26public static readonly EventDescriptorCollection Empty = new EventDescriptorCollection(null, true); 269return new EventDescriptorCollection(_events, Count, _namedSort, _comparer); 278return new EventDescriptorCollection(_events, Count, names, _comparer); 287return new EventDescriptorCollection(_events, Count, names, comparer); 296return new EventDescriptorCollection(_events, Count, _namedSort, comparer);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
461_events = new EventDescriptorCollection(eventArray, true);
System\ComponentModel\TypeDescriptor.cs (8)
1097return new EventDescriptorCollection(null, true); 1124return new EventDescriptorCollection(null, true); 1136events = new EventDescriptorCollection(descriptors, true); 1183return new EventDescriptorCollection(null, true); 1255evts = new EventDescriptorCollection(eventArray, true); 1925cacheValue = new EventDescriptorCollection(eventArray, true); 2123cacheValue = new EventDescriptorCollection(eventArray, true); 2264cacheValue = new EventDescriptorCollection(eventArray, true);
System.Data.Common (8)
System\Data\Common\DataRecordInternal.cs (2)
346return new EventDescriptorCollection(null); 352return new EventDescriptorCollection(null);
System\Data\Common\DbDataRecord.cs (2)
91EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 94EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
System\Data\DataRowView.cs (2)
248EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 251EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
System\Data\DataViewManagerListItemTypeDescriptor.cs (2)
78EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 89new EventDescriptorCollection(null);
System.Windows.Forms (2)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (2)
49EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new(null); 52EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new(null);
99 references to EventDescriptorCollection
netstandard (1)
netstandard.cs (1)
316[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.EventDescriptorCollection))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
302[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.EventDescriptorCollection))]
System.ComponentModel.TypeConverter (52)
System\ComponentModel\CustomTypeDescriptor.cs (5)
138public virtual EventDescriptorCollection GetEvents() 145return EventDescriptorCollection.Empty; 156public virtual EventDescriptorCollection GetEvents(Attribute[]? attributes) 163return EventDescriptorCollection.Empty; 170public virtual EventDescriptorCollection GetEventsFromRegisteredType()
System\ComponentModel\Design\IEventPropertyService.cs (1)
35PropertyDescriptorCollection GetEventProperties(EventDescriptorCollection events);
System\ComponentModel\EventDescriptorCollection.cs (7)
26public static readonly EventDescriptorCollection Empty = new EventDescriptorCollection(null, true); 29/// Initializes a new instance of the <see cref='System.ComponentModel.EventDescriptorCollection'/> class. 248/// Gets an enumerator for this <see cref='System.ComponentModel.EventDescriptorCollection'/>. 267public virtual EventDescriptorCollection Sort() 276public virtual EventDescriptorCollection Sort(string[] names) 285public virtual EventDescriptorCollection Sort(string[] names, IComparer comparer) 294public virtual EventDescriptorCollection Sort(IComparer comparer)
System\ComponentModel\IComNativeDescriptorHandler.cs (2)
26EventDescriptorCollection GetEvents(object component); 28EventDescriptorCollection GetEvents(object component, Attribute[]? attributes);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
56EventDescriptorCollection GetEvents(); 63EventDescriptorCollection GetEvents(Attribute[]? attributes); 107EventDescriptorCollection GetEventsFromRegisteredType()
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
464internal EventDescriptorCollection GetEvents([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) 470internal EventDescriptorCollection GetEventsFromRegisteredType(Type type) 542internal static EventDescriptorCollection GetExtendedEvents() 544return EventDescriptorCollection.Empty;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
22private EventDescriptorCollection? _events; 435internal EventDescriptorCollection GetEvents()
System\ComponentModel\TypeDescriptor.cs (28)
1091public static EventDescriptorCollection GetEvents( 1106public static EventDescriptorCollection GetEventsFromRegisteredType(Type componentType) 1117public static EventDescriptorCollection GetEvents( 1127EventDescriptorCollection events = GetDescriptor(componentType, nameof(componentType)).GetEvents(attributes); 1147public static EventDescriptorCollection GetEvents(object component) 1157public static EventDescriptorCollection GetEvents(object component, bool noCustomTypeDesc) 1167public static EventDescriptorCollection GetEvents(object component, Attribute[] attributes) 1178public static EventDescriptorCollection GetEvents(object component, Attribute[]? attributes, bool noCustomTypeDesc) 1251if (!(results is EventDescriptorCollection evts)) 2842EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2848EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3163EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3165EventDescriptorCollection events = _primary.GetEvents() ?? _secondary.GetEvents(); 3175EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3177EventDescriptorCollection events = _primary.GetEvents(attributes) ?? _secondary.GetEvents(attributes); 3607EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 3620EventDescriptorCollection events = desc.GetEvents(); 3628EventDescriptorCollection ICustomTypeDescriptor.GetEventsFromRegisteredType() 3641EventDescriptorCollection events = desc.GetEventsFromRegisteredType(); 3650EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) 3662EventDescriptorCollection events = ReflectTypeDescriptionProvider.GetExtendedEvents(); 3668EventDescriptorCollection evts = desc.GetEvents(attributes); 4006public EventDescriptorCollection GetEvents() 4012EventDescriptorCollection events; 4033public EventDescriptorCollection GetEventsFromRegisteredType() 4039EventDescriptorCollection events; 4061public EventDescriptorCollection GetEvents(Attribute[]? attributes) 4067EventDescriptorCollection events;
System.Data.Common (10)
System\Data\Common\DataRecordInternal.cs (2)
344EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 350EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes)
System\Data\Common\DbConnectionStringBuilder.cs (2)
643EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 651EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes)
System\Data\Common\DbDataRecord.cs (2)
91EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 94EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
System\Data\DataRowView.cs (2)
248EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 251EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new EventDescriptorCollection(null);
System\Data\DataViewManagerListItemTypeDescriptor.cs (2)
78EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new EventDescriptorCollection(null); 88EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) =>
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
2499EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 2504EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (2)
49EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => new(null); 52EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => new(null);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (4)
29EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => EventDescriptorCollection.Empty; 31EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
System\Windows\Forms\DataBinding\Binding.cs (1)
547EventDescriptorCollection eventInfos = TypeDescriptor.GetEvents(BindableComponent);
System\Windows\Forms\Design\EventsTab.cs (2)
94/// The <see cref="EventsTab"/> uses <see cref="IEventBindingService.GetEventProperties(EventDescriptorCollection)"/> 150EventDescriptorCollection propertyEvents = TypeDescriptor.GetEvents(value!, attributes!);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
1271EventDescriptorCollection ICustomTypeDescriptor.GetEvents() 1273return EventDescriptorCollection.Empty; 1282EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attributes) => EventDescriptorCollection.Empty;
System\ComponentModel\Design\EventBindingService.cs (1)
172PropertyDescriptorCollection IEventBindingService.GetEventProperties(EventDescriptorCollection events)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
242protected static EventDescriptorCollection GetEventsHelper(IDesignerSerializationManager manager, object instance, Attribute[]? attributes) 2132EventDescriptorCollection events = GetEventsHelper(manager, value, filter).Sort();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
1258EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn); 1260EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!);
System.Windows.Forms.Tests (15)
System\Windows\Forms\AxHostTests.cs (8)
2631EventDescriptorCollection events = customTypeDescriptor.GetEvents(); 2656EventDescriptorCollection events = customTypeDescriptor.GetEvents(); 2687EventDescriptorCollection events = customTypeDescriptor.GetEvents(attributes); 2713EventDescriptorCollection events = customTypeDescriptor.GetEvents(attributes); 2736EventDescriptorCollection events = customTypeDescriptor.GetEvents([new CustomAttribute()]); 2761EventDescriptorCollection events = customTypeDescriptor.GetEvents([new CustomAttribute()]); 2784EventDescriptorCollection events = customTypeDescriptor.GetEvents([new NoSuchAttribute()]); 2809EventDescriptorCollection events = customTypeDescriptor.GetEvents([new NoSuchAttribute()]);
System\Windows\Forms\AxSystemMonitorTests.cs (1)
27var events = TypeDescriptor.GetEvents(_control);
System\Windows\Forms\AxWebBrowserTests.cs (1)
29var events = TypeDescriptor.GetEvents(_control);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
128public EventDescriptorCollection GetEvents() => throw new NotImplementedException(); 130public EventDescriptorCollection GetEvents(Attribute[]? attributes) => throw new NotImplementedException();
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
219var events = TypeDescriptor.GetEvents(vbcontrol);
System\Windows\Forms\ListBindingHelperTests.cs (2)
849public EventDescriptorCollection GetEvents(Attribute[] attributes) 942EventDescriptorCollection ICustomTypeDescriptor.GetEvents()