Check out example codes for "declare prop array c#". It will help you in understanding the concepts better.

Code Example 1

private int[] myNumbers;
public int[] MyNumbers
{
    get { return myNumbers; }
    set { myNumbers = value; }
}

Code Example 2

class DemoClass
{
    public int[] MyNumbers { get; private set; }

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

Learn ReactJs, React Native from akashmittal.com