title: Workaround for not being able to use two types in an array
body: <p>I am relatively new to C#. I need to be able to create a multi-dimensional array that holds two different types, array[int, double].  I know arrays do not have this capability and I was told as a workaround I should use a struct, but I do not know how to implement this.  </p>
  
  <p>I have an array that holds int values that specify where data crossed each plot on a chart...</p>
  
  <pre><code>int[] barHits = { Yminus7Hit, Yminus6Hit, Yminus5Hit, Yminus4Hit, Yminus3Hit, etc.... }
  </code></pre>
  
  <p>And another array that specifies the Y-value of the plot itself...</p>
  
  <pre><code>double[] array = {lower6, lower5, lower4, lower3, lower2, etc...
  </code></pre>
  
  <p>I need to combine them in such a way that I can reference the greatest (most recent) int value from the first array and its corresponding double value in the second array.</p>
  
  <pre><code>struct coordinates
  {
      int x; 
      double y;
  }
  </code></pre>
  
  <p>I have been reading on the web about this for the last few hours but honestly it feels like the microsoft docs themselves are written as if I am already a wizard programmer.  </p>
  
  <p>Is there a way that I can use the above struct to accomplish my goal?  Is a struct even the right tool to accomplish my goal?  </p>
  
  <p>Sorry for the very general nature of my query, like I said, I am new to programming.  I appreciate any help you all can offer.</p>