Initializing an array of a certain type using another array (C#)
<p>This is my question:
Let's say I have a class with such a constructor:</p>

<pre><code>Class A {
   private int i;
   public A(int new_i) {
      i = new_i;
   }
}
</code></pre>

<p>Can I initialize an array of A with an array of int?
If so, how can I do it?
I was thinking something like:</p>

<pre><code>int[] b = new int[5] { 0,1,2,3,4}; 
A[] a; 
a = new A[](b);
</code></pre>

<p>Thanks!</p>
