Can some one help me understand why this doesn't work:
public interface IInterface
{
string GetString(string start);
void DoSomething();
}
public class InterfaceImpl : IInterface
{
string IInterface.GetString(string start)
{
return start + " okay.";
}
void IInterface.DoSomething()
{
Console.WriteLine(this.GetString("Go")); // <-- Error: InterfaceImpl does not contain a definition for GetString
}
}
I can't figure out why I can't call a function that is most certainly defined in the implementation.
Thanks for your help.