IMethodInterceptorIntercept Method |
Version 113.3.50
Called before the method is invokved. You are now responsible for evaluating
the function and returning the result.
Namespace:
CefSharp.ModelBinding
Assembly:
CefSharp (in CefSharp.dll) Version: 113.3.50.0 (113.3.50.0)
Syntax Object Intercept(
Func<Object[], Object> method,
Object[] parameters,
string methodName
)
Object^ Intercept(
Func<array<Object^>^, Object^>^ method,
array<Object^>^ parameters,
String^ methodName
)
Parameters
- method
- Type: SystemFuncObject, Object
A Func that represents the method to be called - parameters
- Type: SystemObject
paramaters to be passed to method - methodName
- Type: SystemString
Name of the method to be called
Return Value
Type:
ObjectThe method result
Examples
object IMethodInterceptor.Intercept(Func<object[], object> method, object[] parameters, string methodName)
{
object result = method(parameters);
Debug.WriteLine("Called " + methodName);
return result;
}
See Also