4 overrides of GetAddMethod
System.Private.CoreLib (1)
src\System\Reflection\RuntimeEventInfo.cs (1)
152
public override MethodInfo?
GetAddMethod
(bool nonPublic)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
65
public override MethodInfo?
GetAddMethod
(bool nonPublic)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
59
public sealed override MethodInfo?
GetAddMethod
(bool nonPublic) => GetRoAddMethod()?.FilterAccessor(nonPublic);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
66
public 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)
972
MethodInfo mi = ei.
GetAddMethod
(true);
1159
MethodInfo mi = ei.
GetAddMethod
(true);
PresentationFramework (2)
System\Windows\Markup\XamlTypeMapper.cs (2)
1145
MethodInfo mi = ei.
GetAddMethod
(true);
1159
MethodInfo 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)
21
public virtual MethodInfo? AddMethod =>
GetAddMethod
(nonPublic: true);
25
public MethodInfo? GetAddMethod() =>
GetAddMethod
(nonPublic: false);
47
MethodInfo m =
GetAddMethod
(true)!;
64
MethodInfo addMethod =
GetAddMethod
(nonPublic: false) ?? throw new InvalidOperationException(SR.InvalidOperation_NoPublicAddMethod);
src\System\Attribute.CoreCLR.cs (1)
165
MethodInfo? add = ev.
GetAddMethod
(true);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
67
return UnderlyingEvent.
GetAddMethod
(nonPublic);
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
413
return eventInfo.
GetAddMethod
(nonPublic);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
66
public override MethodInfo? GetAddMethod(bool nonPublic) => _innerEventInfo.
GetAddMethod
(nonPublic);
System.Xaml (2)
System\Xaml\Schema\TypeReflector.cs (1)
629
return IsPrivateOrNull(ei.
GetAddMethod
(true));
System\Xaml\XamlMember.cs (1)
795
return ei?.
GetAddMethod
(true);
System.Xaml.Tests (2)
System\Xaml\XamlMemberTests.cs (2)
2006
typeof(DataClass).GetEvent(nameof(DataClass.Event))!.
GetAddMethod
(true)!
2011
typeof(DataClass).GetEvent("PrivateEvent", BindingFlags.Instance | BindingFlags.NonPublic)!.
GetAddMethod
(true)!