Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 4) CS0109

The member 'member' does not hide an inherited member. The new keyword is not required

A class declaration included the new keyword even though the declaration does not override an existing declaration in a base class. You can delete the new keyword.

The following sample generates CS0109:

// CS0109.cs
// compile with: /W:4
namespace x
   public class a
      public int i;

   public class b : a
      public new int i;
      public new int j;   // CS0109
      public static void Main()

Community Additions

© 2014 Microsoft