// Explicit interface implementation. // This method is not directly visible as a member of the class. void IDoStuffInterface.DoStuff(IMarkerInterface obj) { // Do something with 'obj', or throw an exception when // it has the wrong type. Delegate the call to the // other DoStuff method if you wish. }
public static Response AsJson <T>(this IMarkerInterface marker, T model) { return(new JsonResponse <T>(model)); }