<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1540</ErrorName>
  <Examples>
    <string>// cs1540-2.cs : Cannot access protected member `A.X()' via a qualifier of type `B'; the qualifier must be of type `C' (or derived from it)
// line: 21

class A
{
        protected virtual void X ()
        {
        }
}
 
class B : A
{
}
 
class C : A
{
        static B b = new B ();
 
        static void M ()
        {
                b.X ();
        }
}</string>
    <string>class A
{
        protected int n;
}

class B : A
{
        public static void Main ()
	{
		A b = new A ();
		b.n = 1;
	}
}
</string>
  </Examples>
</ErrorDocumentation>