4 types derived from EventInfo
System.Private.CoreLib (1)
src\System\Reflection\RuntimeEventInfo.cs (1)
11internal sealed unsafe class RuntimeEventInfo : EventInfo
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
9internal class DelegatingEventInfo : EventInfo
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\TypeExtensions.net.cs (1)
39internal abstract class LeveledEventInfo : EventInfo
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
18public class ComAwareEventInfo : EventInfo
240 references to EventInfo
Microsoft.CodeAnalysis.EditorFeatures (1)
artifacts\obj\Microsoft.CodeAnalysis.EditorFeatures\Release\net472\GeneratedInternalTypeHelper.g.cs (1)
56protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\MemberInfo\EventInfoImpl.cs (2)
17internal readonly System.Reflection.EventInfo Event; 19internal EventInfoImpl(System.Reflection.EventInfo @event)
Debugger\MemberInfo\TypeImpl.cs (1)
219return new EventInfoImpl((System.Reflection.EventInfo)member);
Microsoft.CodeAnalysis.Test.Utilities (3)
Platform\Custom\MetadataSignatureHelper.cs (3)
644private static void AppendEventInfo(EventInfo @event, StringBuilder sb) 690foreach (var @event in type.GetEvents(BINDING_FLAGS).OrderBy((member) => member.Name)) 748foreach (var @event in type.GetEvents(BINDING_FLAGS))
Microsoft.CSharp (6)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\EventSymbol.cs (1)
20public EventInfo AssociatedEventInfo;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (5)
178List<EventInfo> events = null; 218else if (member is EventInfo e) 221(events ??= new List<EventInfo>()).Add(e); 227foreach (EventInfo e in events) 1098private static void AddEventToSymbolTable(EventInfo eventInfo, AggregateSymbol aggregate, FieldSymbol addedField)
Microsoft.Maui.Controls (2)
Interactivity\EventTrigger.cs (1)
18 EventInfo _eventinfo;
PlatformBindingHelpers.cs (1)
163 EventInfo updateSourceEvent = null;
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
463 var eventInfo = elementType.GetRuntimeEvent(localName) ?? elementType.GetRuntimeEvents().FirstOrDefault(ei => ei.Name == localName && !(ei.AddMethod.IsPrivate));
Microsoft.VisualStudio.LanguageServices (1)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\GeneratedInternalTypeHelper.g.cs (1)
56protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
Microsoft.VisualStudio.LanguageServices.CSharp (1)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.CSharp\Release\net472\GeneratedInternalTypeHelper.g.cs (1)
56protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
Microsoft.VisualStudio.LanguageServices.Implementation (1)
artifacts\obj\Microsoft.VisualStudio.LanguageServices.Implementation\Release\net472\GeneratedInternalTypeHelper.g.cs (1)
56protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
454[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.EventInfo))]
netstandard (1)
netstandard.cs (1)
1422[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.EventInfo))]
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
1880if (memberInfo is EventInfo ei) 2931param1 = new CodeParameterDeclarationExpression(typeof(EventInfo), EVENTINFO);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
3209else if (dynamicObject is EventInfo)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (6)
970private bool IsAllowedEvent(EventInfo ei, bool isProtectedAllowed) 1157private static bool IsPublicEvent(EventInfo ei) 1310EventInfo ei = memberInfo as EventInfo; 1469EventInfo ei = memberInfo as EventInfo;
PresentationFramework (19)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (4)
274EventInfo spcEvent = _type.GetEvent(StaticPropertyChanged, BindingFlags.Public | BindingFlags.Static); 284EventInfo spcEvent = _type.GetEvent(StaticPropertyChanged, BindingFlags.Public | BindingFlags.Static); 604EventInfo eventInfo = type.GetEvent(eventName, BindingFlags.Public | BindingFlags.Static); 615EventInfo eventInfo = type.GetEvent(eventName, BindingFlags.Public | BindingFlags.Static);
System\Windows\Markup\Baml2006\WpfXamlMember.cs (1)
78EventInfo eventInfo,
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
396return new WpfXamlMember(re, (EventInfo)memberFromBase.UnderlyingMember, SchemaContext, UseV3Rules);
System\Windows\Markup\BamlRecordReader.cs (2)
2855EventInfo ei = reidOrEi as EventInfo;
System\Windows\Markup\BamlRecords.cs (2)
4860internal EventInfo EventInfo 4942private EventInfo _ei = null;
System\Windows\Markup\XamlTypeMapper.cs (9)
1143private static bool IsAllowedEvent(EventInfo ei, bool allowProtected, out bool isPublic) 1157private static bool IsPublicEvent(EventInfo ei) 1310EventInfo ei = memberInfo as EventInfo; 1469EventInfo ei = memberInfo as EventInfo; 1583internal EventInfo GetClrEventInfo( 1590EventInfo eventInfo = null; 2811internal static bool AddInternalEventHandler(ParserContext pc, object rootElement, EventInfo eventInfo, object target, Delegate handler)
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (2)
36EventInfo event_ = (EventInfo)member;
System.ComponentModel.TypeConverter (9)
System\ComponentModel\ReflectEventDescriptor.cs (6)
68private EventInfo? _realEvent; // actual event info... may be null 96EventInfo eventInfo) 107internal static ReflectEventDescriptor CreateWithRegisteredType(Type componentClass, EventInfo eventInfo) => new ReflectEventDescriptor(componentClass, eventInfo); 257private void FillEventInfoAttribute(EventInfo realEventInfo, IList attributes) 324EventInfo? defined = null; 332EventInfo test = start.GetEvent(_realEvent.Name, bindingFlags)!;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
1172EventInfo[] eventInfos = TrimSafeReflectionHelper.GetEvents(type, bindingFlags); 1178EventInfo eventInfo = eventInfos[idx];
System\ComponentModel\TrimSafeReflectionHelper.cs (1)
15public static EventInfo[] GetEvents(Type type, BindingFlags bindingAttr) => type.GetEvents(bindingAttr);
System.Private.CoreLib (58)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (3)
422public override EventInfo GetEvent(string name, BindingFlags bindingAttr) 428public override EventInfo[] GetEvents() 483public override EventInfo[] GetEvents(BindingFlags bindingAttr)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (3)
189public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); } 192public override EventInfo[] GetEvents() { throw new NotSupportedException(); } 212public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (4)
80public static bool operator ==(EventInfo? left, EventInfo? right) 98public static bool operator !=(EventInfo? left, EventInfo? right) => !(left == right);
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (3)
134public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 137public override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 148public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (3)
12/// <see cref="ParameterInfo"/>, <see cref="FieldInfo"/>, <see cref="PropertyInfo"/> and <see cref="EventInfo"/>. 237/// Populates <see cref="NullabilityInfo" /> for the given <see cref="EventInfo" />. 244public NullabilityInfo Create(EventInfo eventInfo)
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (2)
46public static IEnumerable<EventInfo> GetRuntimeEvents( 86public static EventInfo? GetRuntimeEvent(
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (3)
113public sealed override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 116public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 170public sealed override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (3)
105public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => typeImpl.GetEvent(name, bindingAttr); 108public override EventInfo[] GetEvents() => typeImpl.GetEvents(); 124public override EventInfo[] GetEvents(BindingFlags bindingAttr) => typeImpl.GetEvents(bindingAttr);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (2)
19public virtual EventInfo? GetDeclaredEvent(string name) => GetEvent(name, DeclaredOnlyLookup); 54public virtual IEnumerable<EventInfo> DeclaredEvents
src\libraries\System.Private.CoreLib\src\System\Type.cs (4)
208public EventInfo? GetEvent(string name) => GetEvent(name, DefaultLookup); 211public abstract EventInfo? GetEvent(string name, BindingFlags bindingAttr); 214public virtual EventInfo[] GetEvents() => GetEvents(DefaultLookup); 217public abstract EventInfo[] GetEvents(BindingFlags bindingAttr);
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
181EventInfo?[]? e = null; 335if (e[i] is EventInfo ei)
src\System\Attribute.CoreCLR.cs (9)
120private static Attribute[] InternalGetCustomAttributes(EventInfo element, Type type, bool inherit) 133EventInfo? baseEvent = GetParentDefinition(element); 160private static EventInfo? GetParentDefinition(EventInfo ev) 178private static bool InternalIsDefined(EventInfo element, Type attributeType, bool inherit) 193EventInfo? baseEvent = GetParentDefinition(element); 461MemberTypes.Event => InternalGetCustomAttributes((EventInfo)element, attributeType, inherit), 478MemberTypes.Event => InternalGetCustomAttributes((EventInfo)element, typeof(Attribute), inherit), 500MemberTypes.Event => InternalIsDefined((EventInfo)element, attributeType, inherit),
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (3)
147public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) 153public override EventInfo[] GetEvents() 201public override EventInfo[] GetEvents(BindingFlags bindingAttr)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (3)
128public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { throw new NotSupportedException(); } 131public override EventInfo[] GetEvents() { throw new NotSupportedException(); } 151public override EventInfo[] GetEvents(BindingFlags bindingAttr) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
745public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) 754public override EventInfo[] GetEvents() 814public override EventInfo[] GetEvents(BindingFlags bindingAttr)
src\System\RuntimeType.CoreCLR.cs (8)
2596private ListBuilder<EventInfo> GetEventCandidates(string? name, BindingFlags bindingAttr, bool allowPrefixLookup) 2604ListBuilder<EventInfo> candidates = new ListBuilder<EventInfo>(cache.Length); 2682public override EventInfo[] GetEvents(BindingFlags bindingAttr) 2712ListBuilder<EventInfo> events = GetEventCandidates(null, bindingAttr, false); 2937public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) 2944EventInfo? match = null; 3078ListBuilder<EventInfo> events = default;
System.Reflection (1)
System.Reflection.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.EventInfo))]
System.Reflection.Context (17)
System\Reflection\Context\Custom\AttributeUtils.cs (1)
109EventInfo provider = evnt.UnderlyingEvent;
System\Reflection\Context\Custom\CustomEventInfo.cs (1)
10public CustomEventInfo(EventInfo template, CustomReflectionContext context)
System\Reflection\Context\CustomReflectionContext.Projector.cs (3)
94public override EventInfo? ProjectEvent(EventInfo? value) 239output = ProjectEvent((EventInfo)value);
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (2)
11public DelegatingEventInfo(EventInfo @event) 58public EventInfo UnderlyingEvent { get; }
System\Reflection\Context\Delegation\DelegatingType.cs (3)
215public override EventInfo[] GetEvents() 318public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) 323public override EventInfo[] GetEvents(BindingFlags bindingAttr)
System\Reflection\Context\Projection\ProjectingEventInfo.cs (1)
14public ProjectingEventInfo(EventInfo @event, Projector projector)
System\Reflection\Context\Projection\ProjectingType.cs (4)
81public override EventInfo[] GetEvents() 199public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) 204public override EventInfo[] GetEvents(BindingFlags bindingAttr) 234EventInfo[] events = GetEvents(bindingAttr);
System\Reflection\Context\Projection\Projector.cs (2)
54public abstract EventInfo? ProjectEvent(EventInfo? value);
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
333foreach (EventInfo ei in iface.GetRuntimeEvents()) 390foreach (EventInfo ei in iface.GetRuntimeEvents())
System.Reflection.Emit (13)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (3)
422public override EventInfo GetEvent(string name, BindingFlags bindingAttr) 428public override EventInfo[] GetEvents() 483public override EventInfo[] GetEvents(BindingFlags bindingAttr)
System\Reflection\Emit\EnumBuilderImpl.cs (3)
114public override EventInfo[] GetEvents() => throw new NotSupportedException(); 116public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(); 118public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (3)
120public override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(); 122public override EventInfo[] GetEvents() => throw new NotSupportedException(); 135public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException();
System\Reflection\Emit\TypeBuilderImpl.cs (4)
766public override EventInfo[] GetEvents() => throw new NotSupportedException(); 768public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(); 770public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(); 1172EventInfo[] events = [];
System.Reflection.MetadataLoadContext (32)
System\Reflection\Runtime\BindingFlagSupport\EventPolicies.cs (11)
12internal sealed class EventPolicies : MemberPolicies<EventInfo> 14public sealed override IEnumerable<EventInfo> GetDeclaredMembers(TypeInfo typeInfo) 19public sealed override IEnumerable<EventInfo> CoreGetDeclaredMembers(RuntimeTypeInfo type, NameFilter? filter, RuntimeTypeInfo reflectedType) 26public sealed override void GetMemberAttributes(EventInfo member, out MethodAttributes visibility, out bool isStatic, out bool isVirtual, out bool isNewSlot) 52public sealed override bool IsSuppressedByMoreDerivedMember(EventInfo member, EventInfo[] priorMembers, int startIndex, int endIndex) 62public sealed override bool ImplicitlyOverrides(EventInfo? baseMember, EventInfo? derivedMember) 69public sealed override bool OkToIgnoreAmbiguity(EventInfo m1, EventInfo m2) 74private static MethodInfo? GetAccessorMethod(EventInfo e)
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (1)
209else if (t.Equals(typeof(EventInfo)))
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (4)
46public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => Query<EventInfo>(bindingAttr).ToArray(); 47public sealed override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => Query<EventInfo>(name, bindingAttr).Disambiguate();
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (1)
49if ((results = QuerySpecificMemberTypeIfRequested(type, optionalName, bindingAttr, predicate, MemberTypes.Event, out QueryResult<EventInfo> events)) != null)
System\Reflection\TypeLoading\RuntimeTypeInfo.TypeComponentsCache.cs (1)
88perNameCaches[MemberTypeIndex.Event] = new PerNameQueryCache<EventInfo>(type, ignoreCase: ignoreCase, immediateTypeOnly: immediateTypeOnly);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (1)
46internal sealed override IEnumerable<EventInfo> SpecializeEvents(NameFilter? filter, Type reflectedType, RoInstantiationProviderType declaringType)
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
141internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => _genericTypeDefinition.SpecializeEvents(filter, reflectedType, this);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
238internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => SpecializeEvents(filter, reflectedType, this); 245internal abstract IEnumerable<EventInfo> SpecializeEvents(NameFilter? filter, Type reflectedType, RoInstantiationProviderType declaringType);
System\Reflection\TypeLoading\Types\RoExceptionType.cs (1)
47internal sealed override IEnumerable<EventInfo> SpecializeEvents(NameFilter? filter, Type reflectedType, RoInstantiationProviderType declaringType) => throw null!;
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
199internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>();
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
90internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>();
System\Reflection\TypeLoading\Types\RoHasElementType.cs (2)
82internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>();
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
194internal override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
System\Reflection\TypeLoading\Types\RoStubType.cs (1)
79internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => throw null!;
System\Reflection\TypeLoading\Types\RoType.cs (1)
378internal abstract IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType);
System.Reflection.TypeExtensions (10)
System\Reflection\TypeExtensions.cs (10)
57public static EventInfo? GetEvent( 67public static EventInfo? GetEvent( 78public static EventInfo[] GetEvents( 87public static EventInfo[] GetEvents( 401public static MethodInfo? GetAddMethod(this EventInfo eventInfo) 409public static MethodInfo? GetAddMethod(this EventInfo eventInfo, bool nonPublic) 417public static MethodInfo? GetRaiseMethod(this EventInfo eventInfo) 425public static MethodInfo? GetRaiseMethod(this EventInfo eventInfo, bool nonPublic) 433public static MethodInfo? GetRemoveMethod(this EventInfo eventInfo) 441public static MethodInfo? GetRemoveMethod(this EventInfo eventInfo, bool nonPublic)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
462[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.EventInfo))]
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
20private readonly EventInfo _innerEventInfo; 101private static void GetDataForComInvocation(EventInfo eventInfo, out Guid sourceIid, out int dispid)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\EventBindingService.cs (1)
146EventInfo? evInfo = ed.ComponentType.GetEvent(ed.Name);
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataGridViewTests.cs (1)
3542Reflection.EventInfo eventInfo = type.GetEvent(eventName);
System\Windows\Forms\Design\DesignerAttributeTests.cs (1)
145var eventInfo = type.GetEvent(attribute.Name);
System\Windows\Forms\ListBindingHelperTests.cs (2)
841public override EventInfo GetEvent(string name, BindingFlags bindingAttr) 846public override EventInfo[] GetEvents(BindingFlags bindingAttr)
System.Xaml (26)
System\Xaml\Schema\TypeReflector.cs (14)
451internal EventInfo LookupEvent(string name) 455EventInfo ei = UnderlyingType.GetEvent(name, AllProperties_BF); 465out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers) 471EventInfo[] eventList = UnderlyingType.GetEvents(AllProperties_BF); 548private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers) 550Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length); 553EventInfo currentEvent = eventList[i]; 565EventInfo shadowedEvent; 590List<EventInfo> filteredResult = new List<EventInfo>(result.Count); 591foreach (EventInfo evt in result.Values) 627private static bool IsPrivate(EventInfo ei)
System\Xaml\XamlMember.cs (8)
65public XamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext) 70public XamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext, XamlMemberInvoker invoker) 75internal XamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext, XamlMemberInvoker invoker, MemberReflector reflector) 618return UnderlyingMember is EventInfo; 794EventInfo ei = UnderlyingMember as EventInfo; 1011EventInfo ei = underlyingMember as EventInfo;
System\Xaml\XamlSchemaContext.cs (1)
641internal virtual XamlMember GetEvent(EventInfo ei)
System\Xaml\XamlType.cs (3)
1067ICollection<EventInfo> events; 1085foreach (EventInfo ei in events) 1123EventInfo ei = _reflector.LookupEvent(name);
System.Xaml.Tests (12)
Common\CustomType.cs (2)
35public Optional<EventInfo[]> GetEventsResult { get; set; } 36public override EventInfo[] GetEvents(BindingFlags bindingAttr)
System\Xaml\XamlMemberTests.cs (5)
109public void Ctor_EventInfo_XamlSchemaContext(EventInfo eventInfo, XamlSchemaContext schemaContext) 131public void Ctor_EventInfo_XamlSchemaContext_XamlMemberInvoker(EventInfo eventInfo, XamlSchemaContext schemaContext, XamlMemberInvoker invoker) 154Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext())); 155Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker)); 325EventInfo eventInfo = typeof(DataClass).GetEvent(nameof(DataClass.Event))!;
System\Xaml\XamlMemberTests.Mocks.cs (4)
28public SubXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext) : base(eventInfo, schemaContext) { } 30public SubXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext, XamlMemberInvoker invoker) : base(eventInfo, schemaContext, invoker) { } 87public CustomXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext) : base(eventInfo, schemaContext) { } 89public CustomXamlMember(EventInfo eventInfo, XamlSchemaContext schemaContext, XamlMemberInvoker invoker) : base(eventInfo, schemaContext, invoker) { }
System\Xaml\XamlTypeTests.cs (1)
1206GetEventsResult = new EventInfo[]
WindowsBase.Tests (1)
System\Windows\Markup\InternalTypeHelperTests.cs (1)
20protected override void AddEventHandler(EventInfo eventInfo, object target, Delegate handler)