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