示例#1
0
 // 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.
 }
示例#2
0
 public static Response AsJson <T>(this IMarkerInterface marker, T model)
 {
     return(new JsonResponse <T>(model));
 }