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

InheritanceInvocation

public abstract class InheritanceInvocation : AbstractInvocation
using System; using System.Reflection; using System.Runtime.CompilerServices; namespace Castle.DynamicProxy.Internal { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class InheritanceInvocation : AbstractInvocation { private readonly Type targetType; public override object InvocationTarget => base.Proxy; public override MethodInfo MethodInvocationTarget => InvocationHelper.GetMethodOnType(targetType, base.Method); public override Type TargetType => targetType; protected InheritanceInvocation(Type targetType, object proxy, IInterceptor[] interceptors, MethodInfo proxiedMethod, [System.Runtime.CompilerServices.Nullable(new byte[] { 1, 2 })] object[] arguments) : base(proxy, interceptors, proxiedMethod, arguments) { this.targetType = targetType; } protected abstract override void InvokeMethodOnTarget(); } }