public static void Repiter(this IMyInterface myInterface, int x) { for (int i = 0; i < x; i++) { myInterface.MyMetod(); } }