C# Error
CS1004 – Duplicate ‘{0}’ modifier
Reason for the Error & Solution
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
{
}
}