<PackageReference Include="Castle.Core" Version="5.2.1" />

InterfaceMethodWithoutTargetInvocation

using System; using System.ComponentModel; using System.Reflection; using System.Runtime.CompilerServices; namespace Castle.DynamicProxy.Internal { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] [EditorBrowsable(EditorBrowsableState.Never)] public sealed class InterfaceMethodWithoutTargetInvocation : AbstractInvocation { public override object InvocationTarget => null; public override MethodInfo MethodInvocationTarget => null; public override Type TargetType => null; [System.Runtime.CompilerServices.NullableContext(1)] public InterfaceMethodWithoutTargetInvocation([System.Runtime.CompilerServices.Nullable(2)] object target, object proxy, IInterceptor[] interceptors, MethodInfo proxiedMethod, [System.Runtime.CompilerServices.Nullable(new byte[] { 1, 2 })] object[] arguments) : base(proxy, interceptors, proxiedMethod, arguments) { } protected override void InvokeMethodOnTarget() { ThrowOnNoTarget(); } } }