I tried the following
// no using statements here, not even using System;
class Program
{
static void Main(string[] args)
{
string[] arr = new string[3] { "A" , "B", "C" };
}
}
My question is simple, even without any using statements, how come compiler is able to compile this, more specifically, shouldn’t there be a compile time error because I am trying to build an array and System.Array is not accessible?
Thanks.
Arrays are part of the language. You don’t need to reference a namespace to use them.