This topic has not yet been rated - Rate this topic

Compiler Error CS1004

Duplicate 'modifier' modifier

A duplicate modifier, such as an access modifier, was detected.

The following sample generates CS1004:

// CS1004.cs
public class clx
{
   public public static void Main()   // CS1004, two public keywords
   {
   }
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ