title: Merging two arrays in C#
body: <p>In my code I have 2 arrays and I want to merge the both using right sequence. and save value to 3rd array. I tried a lot but could not find perfect solution.</p>
  
  <pre><code>public void Toolchange_T7()
  {
      for (int T7 = 0; T7 &lt; sModulename_listofsafetysensor.Length; T7++)
      {
          if (sModulename_listofsafetysensor[T7] != null &amp;&amp; sModulename_listofsafetysensor[T7].Contains("IR") &amp;&amp; sModulename_listofsafetysensor[T7].Contains("FS"))
          {
              sElement_toolchanger[iET7] = sModulename_listofsafetysensor[T7];
              iET7++;
          }
  
      }
      for (int T7 = 0; T7 &lt; sDesignation_toolchanger_t7.Length; T7++)
      {
          if (sDesignation_toolchanger_t7[T7] != null &amp;&amp; sDesignation_toolchanger_t7[T7].Contains("IR") &amp;&amp; sDesignation_toolchanger_t7[T7].Contains("FW"))
          {
              sDesignation_toolchanger[iMT7] = sDesignation_toolchanger_t7[T7];
              iMT7++;
          }
      }
  }
  </code></pre>
  
  <p>sElement_toolchanger contains:</p>
  
  <pre><code>++ST010+IR001+FW001 
  ++ST010+IR002+FW001
  ++ST010+IR006+FW001 
  </code></pre>
  
  <p>sDesignation_toolchanger contains:</p>
  
  <pre><code>++ST010+IR001.FS001
  ++ST010+IR001.FS002
  ++ST010+IR002.FS001
  ++ST010+IR002.FS002
  ++ST010+IR006.FS001
  ++ST010+IR006.FS002
  </code></pre>
  
  <p>My desired output is: </p>
  
  <pre><code>++ST010+IR001+FW001 
  ++ST010+IR001.FS001
  ++ST010+IR001.FS002
  ++ST010+IR002+FW001
  ++ST010+IR002.FS001
  ++ST010+IR002.FS002
  ++ST010+IR006+FW001 
  ++ST010+IR006.FS001
  ++ST010+IR006.FS002
  </code></pre>
  
  <p>It will be very helpful if some one know perfect solution</p>