What is the use of calling interface methods within the class that has implemented it instead of implementing the the particular method itself like below -
public class MyController: Controller, IActionFilter {
public ActionResult Index(Customer obj) {
return View(obj);
}
void IActionFilter.OnActionExecuted(ActionExecutedContext filterContext)
{
Trace.WriteLine("Action Executed");
}
void IActionFilter.OnActionExecuting(ActionExecutingContext filterContext) {
Trace.WriteLine("Action is executing");
}
}
What does calling out methods like this way -> "IActionFilter.OnActionExecuted" achieve?