<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <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 `object'
// Line: 9

class C
{
	public static void Main ()
	{
		var d = new object {
			["a"] = 1
		};
	}
}</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>