4 overrides of GetAddMethod
System.Private.CoreLib (1)
src\System\Reflection\RuntimeEventInfo.cs (1)
152public override MethodInfo? GetAddMethod(bool nonPublic)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
65public override MethodInfo? GetAddMethod(bool nonPublic)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
59public sealed override MethodInfo? GetAddMethod(bool nonPublic) => GetRoAddMethod()?.FilterAccessor(nonPublic);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
66public override MethodInfo? GetAddMethod(bool nonPublic) => _innerEventInfo.GetAddMethod(nonPublic);
18 references to GetAddMethod
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
469 var addMethod = eventInfo.GetAddMethod(nonPublic: true);
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
972MethodInfo mi = ei.GetAddMethod(true); 1159MethodInfo mi = ei.GetAddMethod(true);
PresentationFramework (2)
System\Windows\Markup\XamlTypeMapper.cs (2)
1145MethodInfo mi = ei.GetAddMethod(true); 1159MethodInfo mi = ei.GetAddMethod(true);
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
37_accessors = new MemberInfo?[] { event_.GetRaiseMethod(true), event_.GetAddMethod(true), event_.GetRemoveMethod(true) };
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (4)
21public virtual MethodInfo? AddMethod => GetAddMethod(nonPublic: true); 25public MethodInfo? GetAddMethod() => GetAddMethod(nonPublic: false); 47MethodInfo m = GetAddMethod(true)!; 64MethodInfo addMethod = GetAddMethod(nonPublic: false) ?? throw new InvalidOperationException(SR.InvalidOperation_NoPublicAddMethod);
src\System\Attribute.CoreCLR.cs (1)
165MethodInfo? add = ev.GetAddMethod(true);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
67return UnderlyingEvent.GetAddMethod(nonPublic);
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
413return eventInfo.GetAddMethod(nonPublic);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
66public override MethodInfo? GetAddMethod(bool nonPublic) => _innerEventInfo.GetAddMethod(nonPublic);
System.Xaml (2)
System\Xaml\Schema\TypeReflector.cs (1)
629return IsPrivateOrNull(ei.GetAddMethod(true));
System\Xaml\XamlMember.cs (1)
795return ei?.GetAddMethod(true);
System.Xaml.Tests (2)
System\Xaml\XamlMemberTests.cs (2)
2006typeof(DataClass).GetEvent(nameof(DataClass.Event))!.GetAddMethod(true)! 2011typeof(DataClass).GetEvent("PrivateEvent", BindingFlags.Instance | BindingFlags.NonPublic)!.GetAddMethod(true)!