C# Array error "Unexpected symbol '{' "
<p>I declared some array then got an error thath said "Unexpected symbol '{' ". </p>

<pre><code>int[] array ;

void Start () {
    if (level == 1) {
        array = { 1, 2, 3, 4, 5};  //error here
    }else if (level == 2) {
        array = { 1, 2, 3, 4, 5, 6, 7};  //error here
    }else if (level == 3) {
        array = { 1, 2, 3, 4, 5, 6, 7, 8, 9};
    }
}
</code></pre>

<p>I change above code to this </p>

<pre><code>array [0] = 1;
array [1] = 2;
...
</code></pre>

<p>but i want a simpler one like the first code, how?</p>