using System; public interface IA { void Foo (IA self); } public static class C { public static void Foo (this IA self) { self.Foo (); } public static void Bar (this IA self) { self.Foo (); } public static void Foo (this IA self) { } public static void Main () { } }