Hola, alguien sabe porque este codigo tna sencillo no funciona:
Código:
interface Interfac1
{
void DoWork();
}
class MyClass : Interfac1
{
void DoWork()
{
}
}
Error 1 'MyClass' does not implement interface member 'Interfac1.DoWork()'. 'MyClass.DoWork()' is either static, not public, or has the wrong return type. G:\Visual Studio 2005\Projects\Prueba Interfaz\Prueba Interfaz\i.cs 6 7 Prueba Interfaz
Dice que no implemento DoWork, pero si que lo hago.
Gracias
Saludos