<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0038</ErrorName>
  <Examples>
    <string>// CS0038: Cannot access a nonstatic member of outer type `A' via nested type `C.N'
// Line: 12

class A {
	protected int n = 0;
}

class B : A { }

class C : B {
	class N {
		internal int foo () { return n; }
	}
	public static int Main () {
		N a = new N ();
		return a.foo ();
	}
}
</string>
    <string>// CS0038: Cannot access a nonstatic member of outer type `Outer' via nested type `Outer.Inner'
// Line: 33

public class Runner
{
	string msg;

	public Runner (string s)
	{
		msg = s;
	}

	public string Report ()
	{
		return msg;
	}
}

public class Outer
{
	private Runner r = new Runner ("Outer");

	public Runner Runner
	{
		get { return r; }
		set { r = value; }
	}

	class Inner
	{
		public string Check ()
		{
			return Runner.Report ();
		}
	}
}
</string>
    <string>// CS0038: Cannot access a nonstatic member of outer type `A' via nested type `B.C'
// Line: 15

public class A {
	public int Foo { get { return 1; } }
}

public class B : A {
	public static void Main ()
	{
	}

	public class C {
		public void Baz ()
		{
			int x = Foo;
		}
	}
}
</string>
    <string>// CS0038: Cannot access a nonstatic member of outer type `X' via nested type `X.Y'
// Line: 15
using System;

class X
{
	int a = 5;

	class Y
	{
		public long b;

		public Y ()
		{
			Console.WriteLine (a);
		}
	}

	static void Main ()
	{
	}
}
</string>
    <string>// CS0038: Cannot access a nonstatic member of outer type `B' via nested type `B.C'
// Line: 14

public class B {
	public static void Main ()
	{
	}

	public int Foo { get { return 1; } }

	public class C {
		public void Baz ()
		{
			int x = Foo;
		}
	}
}
</string>
  </Examples>
</ErrorDocumentation>