public interface IFoo { int GetHashCode (); } public interface IFoo { int GetHashCode (); } public class Test { public int Foo (IFoo foo) { return foo.GetHashCode (); } public int Foo (IFoo foo) { return foo.GetHashCode (); } } class X { static void Main () { } }