This documentation is archived and is not being maintained.

Compiler Error CS0111

Class 'class' already defines a member called 'member' with the same parameter types

A class contains two identical member declarations.

The following sample generates CS0111:

// CS0111.cs
namespace x
{
   abstract public class clx
   {
      public abstract void f();
   }

   public class cly : clx
   {
      public void f()
      {
      }
      override public void f() // CS0111, duplicate declaration
      {
      }
      public static int Main()
      {
         return 0;
      }
   }
}
Show: