📜  声明 prop 数组 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.935000             🧑  作者: Mango

代码示例2
class DemoClass
{
    public int[] MyNumbers { get; private set; }

    public DemoClass(int elements)
    {
        MyNumbers = new int[elements];
    }
}