Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

declare prop array c#

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

    public DemoClass(int elements)
    {
        MyNumbers = new int[elements];
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #prop #array
ADD COMMENT
Topic
Name
7+3 =