How to use CodeVariableDeclaraionStament to declare Arrays
<pre><code>CodeVariableDeclarationStatement cvds = new CodeVariableDeclarationStatement(p.ParameterType, p.Name,
                       new CodePrimitiveExpression(INTARR()));
</code></pre>

<p>Consider the above code. 
and when i run my project in debug mode,these are the values that get stored in p.ParameterType  and p.Name.</p>

<pre><code>p.ParameterType = {Name = "Int32[]" FullName = "System.Int32[]"}
p.Name = "x"
</code></pre>

<p>and INTARR() is a method that returns an Array of Integers.</p>

<p>but i get the error,
"Invalid Primitive Type: System.Int32[]. Consider using CodeObjectCreateExpression."</p>

<p>How can i use CodeObjectCreateExpression for the above code,i.e I want to pass an Array of integers in CodeVariableDeclarationStatement.?</p>
