<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0572</ErrorName>
  <Examples>
    <string>// CS0572: `Inner': cannot reference a type through an expression. Consider using `Outer.Inner' instead
// Line: 18

public class Outer
{
	public enum Inner
	{
		ONE,
		TWO
	}
}

public class C
{
	public static bool Test ()
	{
		Outer outer = null;
		return 0 == outer.Inner.ONE;
	}
}</string>
    <string>// CS0572: `Foo': cannot reference a type through an expression. Consider using `Y.Foo' instead
// Line: 13
using System;

class X
{
	private static Y y;

	public static void Main ()
	{
		y = new Y ();

		object o = y.Foo.Hello;
	}
}

class Y
{
	public enum Foo { Hello, World };

	public void Test (Foo foo)
	{
		Console.WriteLine (foo);
	}
}
</string>
    <string>// CS0572: `meth': cannot reference a type through an expression. Consider using `test.meth' instead
// Line: 8

class test2 : test {
	int meth( bool b )
	{
		return 1;
		base.meth (true);
	}
}

abstract class test {
	public delegate void meth( bool b ) ;
} 
</string>
  </Examples>
</ErrorDocumentation>