c# array class get by value code example
Example 1: c# array
float[] array = new float[] { 1f, 5f, 4f, 3f };
Example 2: declare prop array c#
class DemoClass
{
public int[] MyNumbers { get; private set; }
public DemoClass(int elements)
{
MyNumbers = new int[elements];
}
}