<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0021</ErrorName>
  <Examples>
    <string>// CS0021: Cannot apply indexing with [] to an expression of type `System.Array'
// Line: 9 

using System;
class X
{
	public void Foo (Array bar)
	{
		object baz = bar[0];
	}
}

</string>
    <string>// CS0021: Cannot apply indexing with [] to an expression of type `G'
// Line: 8

public class Foo&lt;G&gt;
{
	public static void Bar ()
	{
		int i = default (G)[0];
	}
}

</string>
    <string>// CS0021: Cannot apply indexing with [] to an expression of type `method group'
// Line: 

class X
{
	public void Foo ()
	{
		object baz = Foo [0];
	}
}

</string>
    <string>// CS0021: Cannot apply indexing with [] to an expression of type `int'
// Line: 10 
using System;

class Test
{
	public static void Main ()
	{
		int i = 0;
		Console.WriteLine ("Get i[2]: {0}", i[2]);
	}
}

</string>
  </Examples>
</ErrorDocumentation>