
Question about array initializers, const
Could someone tell me why the following is OK:
public String[] test = {"Three","Two","Eight","Nine"};
while the following:
public const String[] test = {"Three","Two","Eight","Nine"};
results in the error "CS0623: Array initializers can only be used in a
variable or field initializer. Try using a new expression instead."