不要拘泥于 const 关键字,readonly 关键字表示运行时常数
private readonly string[] m_strPosition = { "3,1", "1,5", "4,1" };
看你这个结构下面这种定义更合适
using System.Drawing;
private readonly Point[] Position = new Point[] { new Point(3, 1), new Point(1, 5), new Point(4, 1) };
温馨提示:答案为网友推荐,仅供参考