Const array of strings [duplicate] Const array of strings [duplicate] arrays arrays

Const array of strings [duplicate]


Declare it as readonly instead of const:

public readonly string[] names = { "alpha", "beta", "gamma", "delta" };