Compiler Error CS0107
More than one protection modifier
Only one access modifier (public, private, protected, or internal) is allowed on a class member, with the exception of protected internal and private protected.
The following sample generates CS0107:
// CS0107.cs
public class C
{
private internal void F() // CS0107, delete private or internal
{
}
}
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: