﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0122</ErrorName>
  <Examples>
    <string>// cs0122.cs: prop is not accessible due to its protection level
// Line: 19
// Compiler options: -t:library

class A
{
        int i;

        int prop
        {
                set { i = value; }
        }
}

class B : A
{
        void M ()
        {
                prop = 2;
        }
}
</string>
    <string>interface r {
	A.B aaa ();
}

class A {
	enum B {
		D
	}
}

class B {
	static void Main ()
	{
		A.B x = A.B.D;
	}
}
</string>
    <string>// cs0122-4.cs: `FooAttribute.Foo' is inaccessible due to its protection level
// Line: 11
// This is bug #55970

using System;

public sealed class FooAttribute : Attribute {
	int Foo;
}

[Foo (Foo = 1)]
public class Tests {
	public static void Main () {
	}
}</string>
    <string>// cs0122: `Foo.Bar' is inaccessible due to its protection level

public class Test
{
	public class Foo
	{
		private class Bar {}
	}
	
	private class Bar : Foo.Bar
	{
	}

	public static void Main () {}
}

</string>
    <string>// cs0122: `Foo.IBar' is inaccessible due to its protection level

public class Test
{
	public class Foo
	{
		protected interface IBar {}
	}
	
	private class Bar : Foo.IBar
	{
	}

	public static void Main () {}
}

</string>
    <string>// cs0122.cs: y.x is inaccessible due to its protection level
// Line: 15
using System;

class Y {
	void x () {}

}

class X {
	static int Main ()
	{
		Y y = new Y ();

		y.x ();
		return 0;
	}
}
</string>
  </Examples>
</ErrorDocumentation>