Hi everyone,
I'm having an interesting problem where it seems that method overloads
are not being handled properly in interfaces. Consider the following
code:
interface Foo
{
void f();
void f(int x);
}
When a class is created that implements Foo, the following results:
class SpecialFoo : Foo
{
#region Foo Members
public void f()
{
// TODO: Add SpecialFoo.f implementation
}
void NS.Foo.f(int x)
{
// TODO: Add SpecialFoo.NS.Foo.f implementation
}
#endregion
}
(where NS is the namespace where Foo and SpecialFoo reside).
Is this a bug or simply a language feature that I'm not aware of?
Thanks,
-calvin