Cannot apply indexing with [] to an expression of type 'type'
An attempt was made to access a value via index operation on a data type that does not support array-like operations.
The following sample generates CS0021:
public class MyClass { public static void Main() { int i = 0; i[2]; // CS0021 } }