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
targetTDeclaringTypeThe instance on which the method should be invoked, or default if targeting static methods.
stateTArgumentStateState object containing all method arguments.
Returns
- ValueTask<TResult>
The value returned by the method.
Type Parameters
TDeclaringTypeThe declaring type containing the method.
TArgumentStateType of the state object containing all method arguments.
TResultType of the value returned by the method.