2 overrides of EventHandlerType
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
28public override Type? EventHandlerType
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
52public sealed override Type EventHandlerType => field ??= ComputeEventHandlerType();
32 references to EventHandlerType
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
659AppendType(@event.EventHandlerType, sb);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1133ev.type = GetCTypeFromType(eventInfo.EventHandlerType);
Microsoft.Maui.Controls (2)
Interactivity\EventTrigger.cs (1)
81 _handlerdelegate = ((EventHandler)OnEventTriggered).Method.CreateDelegate(_eventinfo.EventHandlerType, this);
PlatformBindingHelpers.cs (1)
167 handlerDelegate = ((EventHandler)OnPropertyChanged).Method.CreateDelegate(updateSourceEvent.EventHandlerType, this);
Microsoft.Maui.Controls.Xaml (3)
ApplyPropertiesVisitor.cs (3)
483 var n_params = eventInfo.EventHandlerType.GetMethod("Invoke").GetParameters().Length; 494 if (!parameters[i].ParameterType.IsAssignableFrom(eventInfo.EventHandlerType.GetMethod("Invoke").GetParameters()[i].ParameterType)) 506 addMethod.Invoke(element, new[] { mi.CreateDelegate(eventInfo.EventHandlerType, mi.IsStatic ? null : rootElement) });
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1882eventHandlerType = ei.EventHandlerType;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (4)
1312if (!IsAllowedEventDelegateType(ei.EventHandlerType)) 1317ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}"); 1471if (!IsAllowedEventDelegateType(ei.EventHandlerType)) 1476ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}");
PresentationFramework (10)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (4)
277Delegate d = Delegate.CreateDelegate(spcEvent.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 287Delegate d = Delegate.CreateDelegate(spcEvent.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 607Delegate d = Delegate.CreateDelegate(eventInfo.EventHandlerType, this, OnStaticPropertyChangedMethodInfo); 618Delegate d = Delegate.CreateDelegate(eventInfo.EventHandlerType, this, OnStaticPropertyChangedMethodInfo);
System\Windows\Markup\BamlRecordReader.cs (2)
2857ei.EventHandlerType, 2862ThrowException(nameof(SR.ParserCantCreateDelegate), ei.EventHandlerType.Name, attribValue);
System\Windows\Markup\XamlTypeMapper.cs (4)
1314if (!ReflectionHelper.IsPublicType(ei.EventHandlerType)) 1317ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}"); 1473if (!ReflectionHelper.IsPublicType(ei.EventHandlerType)) 1476ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}");
System.ComponentModel.TypeConverter (2)
System\ComponentModel\ReflectEventDescriptor.cs (2)
345_type = defined.EventHandlerType; 349_type = _realEvent.EventHandlerType;
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
37Type? cl = EventHandlerType;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
248return GetNullabilityInfo(eventInfo, eventInfo.EventHandlerType!, CreateParser(eventInfo.GetCustomAttributesData()));
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
30get { return UnderlyingEvent.EventHandlerType; }
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
400Debug.Assert(ei.EventHandlerType != null); 401EventBuilder eb = _tb.DefineEvent(ei.Name, ei.Attributes, ei.EventHandlerType!);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\EventBindingService.cs (2)
148if (evInfo is null || !evInfo.EventHandlerType!.IsGenericType) 153Type[] args = evInfo.EventHandlerType.GetGenericArguments();
System.Xaml (1)
System\Xaml\XamlMember.cs (1)
1014return ei.EventHandlerType;