<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0176</ErrorName>
  <Examples>
    <string>// CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 12
using System;

class A
{
	public static int X { get { return 2; } }
}

class T
	{
	static void Main ()
	{
		A T = new A ();
		System.Console.WriteLine (T.X);
	}
}</string>
    <string>// CS0176: Static member `MyClass.Start(string)' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 10
using System;

class TestIt 
{
        public static void Main() 
        {
                MyClass p = new MyClass();
                p.Start ("hi");
        }
}

class MyClass
{
        public static void Start (string info) 
        {
        }
}
</string>
    <string>// CS0176: Static member `string.Empty' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 9

class X
{
	public static void Main ()
	{
		string y = null;
		var x = y?.Empty;
	}
}</string>
    <string>// CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 14

public enum MyEnum
{
	Foo = 1
}

public class Test
{
	static void Main ()
	{
		MyEnum theEnum = MyEnum.Foo;
		if (theEnum == theEnum.Foo)
		{
		}
	}
}
</string>
    <string>// CS0176: Static member `X.void_method()' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 15
class X {
	public static void void_method ()
	{
	}
	public void void_method (int i)
	{
	}
}

class Y {
	void m (X arg)
	{
		arg.void_method ();
	}
}
</string>
    <string>// CS0176: Static member `A.X' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 12
using System;

class A {
	public static int X;
}

class T {
	static void Main () {
		A T = new A ();
		System.Console.WriteLine (T.X);
	}
}</string>
    <string>// CS0176: Static member `A.Foo()' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 21

public class A
{
	public static void Foo ()
	{
	}
}

public class Test
{
	static A Prop
	{
		get {
			return null;
		}
	}

	public static void Main ()
	{
		Test.Prop.Foo ();
	}
}
</string>
    <string>// CS0176: Static member `X.CONST' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 12

public class X {
	public const double CONST = 1;
}

public class Y: X {

	void D (X x)
	{
		double d = x.CONST;
	}
}
</string>
  </Examples>
</ErrorDocumentation>