title: C# Passing arrays between class A and Class B
body: <p>I am trying to get <code>array[i]</code> from class B to my class A.</p>
  
  <p>In class B I have:</p>
  
  <pre><code>public array getArray() {
      return array[i];
  }
  </code></pre>
  
  <p>How can I get the full <code>array</code> to make this work?</p>
  
  <pre><code>combobox1.items.add(getArray());
  </code></pre>
  
  <p>I am trying this, but it does not work. Can you please answer with a code sample that explains two methods in different classes that send and get <code>array[i]</code>.</p>