Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/04/2006, 04:43
Avatar de 2540EA
2540EA
 
Fecha de Ingreso: mayo-2005
Ubicación: Murcia
Mensajes: 229
Antigüedad: 19 años
Puntos: 0
Interfaces c#

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