<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0120</ErrorName>
  <Examples>
    <string>// cs0120-2.cs: `Test.Add8(int)': An object reference is required for the nonstatic field, method or property
// Line: 12

using System;
using System.Threading;
using System.Reflection;
using System.Reflection.Emit;

public class Test {

        public Test () : this (Add8(4), 6) {
                string hostName = System.Net.Dns.GetHostName ();
                Console.WriteLine ("Hostname: " + hostName);
        }

        public Test (int i, int j) {
                Console.WriteLine ("GOT : " + i + " : " + j);
        }


        public static void Main (String[] args) {
                Test t = new Test ();
        }

        private int Add8 (int i) {
                return i + 8;
        }

}
</string>
    <string>// cs0120-3.cs: `X.method()': An object reference is required for the nonstatic field, method or property
// Line: 11

class X {

	void method ()
	{
	}
       
	public static int Main (string [] args){
		X.method ();
		return 1;
	}
}
</string>
    <string>// cs0120-4.cs: `X.Y': An object reference is required for the nonstatic field, method or property
// Line: 11

using System;

class X {
	// Public properties and variables.
	public string Y;

	// Constructors.
	public X()
	{
	}

	// Public static methods.
	public static void Main(string[] Arguments)
	{
		X.Y = "";
	}
}






</string>
    <string>// cs0120-5.cs: `Babble.Protocol.Auth.Account': An object reference is required for the nonstatic field, method or property
// Line: 28

using System;

namespace Babble.Protocol
{
	public class Query
	{
		public Query(Account a)
		{
		}
	}

	public class Account
	{
	}
	
	public class Auth
	{
		public Account Account
		{
			get { return null; }
		}
		
		private class AuthQuery : Query
		{
			public AuthQuery() : base(Account)
			{
			}
		}
	}
}
</string>
    <string>// cs0120-6.cs: `MemRefMonoBug.Int32': An object reference is required for the nonstatic field, method or property
// Line: 11

using System;

public class MemRefMonoBug {
	private int Int32;	// this member has the same name as System.Int32 class
	public static void Main ()
	{
		new MemRefMonoBug ().Int32 = 0;	// this line causes no problem
		Int32 = 0;	// mcs crashes in this line
	}
}

</string>
    <string>// cs0120-7.cs: `MemRefMonoBug.String': An object reference is required for the nonstatic field, method or property
// Line: 11

using System;

public class MemRefMonoBug {
	private string String;	// this member has the same name as System.String class
	public static void Main ()
	{
		new MemRefMonoBug ().String = "";	// this line causes no problem
		String = "";	// mcs crashes in this line
	}
}

</string>
    <string>// cs0120-8.cs: `Test.ArrayList': An object reference is required for the nonstatic field, method or property
// Line: 10

using System.Collections;

public class Test  {
	ArrayList ArrayList;

	public static void Main () {
		ArrayList.Capacity = 5;
	}
}
</string>
    <string>// cs0120-9.cs: `X.Y(System.Text.StringBuilder)': An object reference is required for the nonstatic field, method or property
// Line: 8

using System.Text;

class X {
	static void Main () {
		X.Y(null);	
	}
	
	void Y(StringBuilder someParam) {
	}
}
</string>
    <string>// cs0120.cs: `test.method()': An object reference is required for the nonstatic field, method or property
// Line: 11

class test {

	void method ()
	{
	}
       
	public static int Main (string [] args){
		method ();
		return 1;
	}
}
</string>
  </Examples>
</ErrorDocumentation>