public static void MyAction(this IMyInterface obj)
 {
     obj.Function();
 }