/// <summary>
 /// Called when a method has been invoked, and executes before the method body and method interceptors.
 /// </summary>
 /// <param name="e">The interception event arguments.</param>
 public virtual void OnEnter(ParameterInterceptionArgs e) => Validate(e.Parameter.Name, e.Parameter.ParameterType, e.Value);
Esempio n. 2
0
 /// <summary>
 /// Called when a method has been invoked, and executes before the method body and method interceptors.
 /// </summary>
 /// <param name="e">The interception event arguments.</param>
 public virtual void OnEnter(ParameterInterceptionArgs e) => e.Value = Apply(e.Value, e.Parameter.ParameterType);