DynamicallyAdvisableObject.ExecuteWithAdvices<TResult, TAction> Method |
Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected TResult ExecuteWithAdvices<TResult, TAction>( ObjectAccessLevel objectAccessLevel, ref TAction action ) where TAction : struct, new(), IAction<TResult>
Parameters
- objectAccessLevel
- Type: PostSharp.Patterns.Model.ObjectAccessLevel
Required access level when executing action. - action
- Type: TAction
The action to be executed.
Type Parameters
- TResult
- Type of return value.
- TAction
- Action type.
Return Value
Type: TResultThe return value of action.