First i write this:
using System;
using System.Collections.Generic;
using System.Text;
namespace TestConst
{
class Program
{
static void Main( string[] args )
{
const string[] e = new string[] { "1", "2", "3" };
}
}
}
compiler failed: says only can use null to initial
Then change to:
using System;
using System.Collections.Generic;
using System.Text;
namespace TestConst
{
class Program
{
static void Main( string[] args )
{
const string[] e = null;
}
}
}
guest what happen Compiler crash!