3 instantiations of EventDefinitionHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
1032return new EventDefinitionHandle(rowId); 1052return new EventDefinitionHandle(handle.RowId); 1062return new EventDefinitionHandle(handle.RowId);
69 references to EventDefinitionHandle
Microsoft.CodeAnalysis (7)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
315protected override EventDefinitionHandle GetEventDefinitionHandle(IEventDefinition def)
MetadataReader\PEModule.cs (3)
3523internal string GetEventDefNameOrThrow(EventDefinitionHandle eventDef) 3530EventDefinitionHandle eventDef, 3925internal EventAccessors GetEventMethodsOrThrow(EventDefinitionHandle eventDef)
PEWriter\FullMetadataWriter.cs (1)
152protected override EventDefinitionHandle GetEventDefinitionHandle(IEventDefinition def)
PEWriter\MetadataWriter.cs (2)
193protected abstract EventDefinitionHandle GetEventDefinitionHandle(IEventDefinition def); 2669var association = GetEventDefinitionHandle(eventDef);
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Metadata\PE\PEEventSymbol.cs (3)
28private readonly EventDefinitionHandle _handle; 55EventDefinitionHandle handle, 253internal EventDefinitionHandle Handle
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
812foreach (var eventDef in module.GetEventsOfTypeOrThrow(_handle)) 2048foreach (var eventRid in module.GetEventsOfTypeOrThrow(_handle))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
4769foreach (var eventDef in metadataReader.EventDefinitions)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
MetadataResolver.cs (1)
95foreach (var eventHandle in typeDef.GetEvents())
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (2)
33ProcessEventDef((EventDefinitionHandle)handle, dllReader, pdbReader, docList); 72private static void ProcessEventDef(EventDefinitionHandle eventDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Metadata\PE\PEEventSymbol.vb (3)
30Private ReadOnly _handle As EventDefinitionHandle 48handle As EventDefinitionHandle, 159Friend ReadOnly Property Handle As EventDefinitionHandle
System.Reflection.Emit (3)
System\Reflection\Emit\EventBuilderImpl.cs (1)
16internal EventDefinitionHandle _handle;
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
236EventDefinitionHandle eventHandle = AddEventDefinition(eventBuilder, GetTypeHandle(eventBuilder.EventType)); 911private EventDefinitionHandle AddEventDefinition(EventBuilderImpl eventBuilder, EntityHandle eventType) =>
System.Reflection.Metadata (42)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (3)
22/// <see cref="EventDefinitionHandle"/>, 69/// <param name="handle"><see cref="EventDefinitionHandle"/> or <see cref="PropertyDefinitionHandle"/></param> 149/// <see cref="EventDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (6)
635public EventDefinitionHandle AddEvent(EventAttributes attributes, StringHandle name, EntityHandle type) 644return EventDefinitionHandle.FromRowId(_eventTable.Count); 647public void AddEventMap(TypeDefinitionHandle declaringType, EventDefinitionHandle eventList) 686/// <param name="association"><see cref="EventDefinitionHandle"/> or <see cref="PropertyDefinitionHandle"/>.</param> 724/// <see cref="EventDefinitionHandle"/>, 1381/// <see cref="EventDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
395public static EventDefinitionHandle EventDefinitionHandle(int rowNumber) 397return Metadata.EventDefinitionHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\HasSemanticsTag.cs (1)
34internal static uint ConvertEventHandleToTag(EventDefinitionHandle eventDef)
System\Reflection\Metadata\Internal\Tables.cs (6)
1239internal EventDefinitionHandle GetEventFor(int rowId) 1242return EventDefinitionHandle.FromRowId(this.Block.PeekReference(rowOffset + _EventOffset, _IsEventTableRowRefSizeSmall)); 1274internal EventAttributes GetFlags(EventDefinitionHandle handle) 1280internal StringHandle GetName(EventDefinitionHandle handle) 1286internal EntityHandle GetEventType(EventDefinitionHandle handle) 1480internal int FindSemanticMethodsForEvent(EventDefinitionHandle eventDef, out ushort methodCount)
System\Reflection\Metadata\MetadataReader.cs (1)
1246public EventDefinition GetEventDefinition(EventDefinitionHandle handle)
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (3)
17internal EventDefinition(MetadataReader reader, EventDefinitionHandle handle) 26private EventDefinitionHandle Handle 28get { return EventDefinitionHandle.FromRowId(_rowId); }
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (7)
815public readonly struct EventDefinitionHandleCollection : IReadOnlyCollection<EventDefinitionHandle> 852IEnumerator<EventDefinitionHandle> IEnumerable<EventDefinitionHandle>.GetEnumerator() 862public struct Enumerator : IEnumerator<EventDefinitionHandle>, IEnumerator 881public EventDefinitionHandle Current 893return EventDefinitionHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask)); 898private EventDefinitionHandle GetCurrentEventIndirect()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
1018public readonly struct EventDefinitionHandle : IEquatable<EventDefinitionHandle> 1030internal static EventDefinitionHandle FromRowId(int rowId) 1035public static implicit operator Handle(EventDefinitionHandle handle) 1040public static implicit operator EntityHandle(EventDefinitionHandle handle) 1045public static explicit operator EventDefinitionHandle(Handle handle) 1055public static explicit operator EventDefinitionHandle(EntityHandle handle) 1075public static bool operator ==(EventDefinitionHandle left, EventDefinitionHandle right) 1082return obj is EventDefinitionHandle && ((EventDefinitionHandle)obj)._rowId == _rowId; 1085public bool Equals(EventDefinitionHandle other) 1095public static bool operator !=(EventDefinitionHandle left, EventDefinitionHandle right)
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (2)
19private readonly EventDefinitionHandle _handle; 21internal EcmaEvent(RoInstantiationProviderType declaringType, EventDefinitionHandle handle, Type reflectedType)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
26public static EventDefinition GetEventDefinition(this EventDefinitionHandle handle, MetadataReader reader) => reader.GetEventDefinition(handle); 67public static int GetToken(this EventDefinitionHandle handle) => MetadataTokens.GetToken(handle);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (1)
49foreach (EventDefinitionHandle handle in TypeDefinition.GetEvents())