class DemoClass { public int[] MyNumbers { get; private set; } public DemoClass(int elements) { MyNumbers = new int[elements]; } }