Compiler Error CS1004
Duplicate 'modifier' modifier
A duplicate modifier, such as an access modifier, was detected.
The following sample generates CS1004:
C#
// CS1004.cs
public class clx
{
public public static void Main() // CS1004, two public keywords
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: