Delegate MethodInvoker<TDeclaringType, TArgumentState, TResult>
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Delegate representing a parameterized method invocation.
public delegate ValueTask<TResult> MethodInvoker<TDeclaringType, TArgumentState, TResult>(ref TDeclaringType? target, ref TArgumentState state)
Parameters
target
TDeclaringTypeThe instance on which the method should be invoked, or default if targeting static methods.
state
TArgumentStateState object containing all method arguments.
Returns
- ValueTask<TResult>
The value returned by the method.
Type Parameters
TDeclaringType
The declaring type containing the method.
TArgumentState
Type of the state object containing all method arguments.
TResult
Type of the value returned by the method.