Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
More than one protection modifier
Only one access modifier (public, private, protected, or internal) is allowed on a class member, with the exception of internal protected.
The following sample generates CS0107:
// CS0107.cs
public class C
{
private internal void f() // CS0107, delete private or internal
{
}
public static int Main()
{
return 1;
}
}