title: How do you display items from a list in a message box?
body: <p>I am working on a project that needs to display a list of people that have above average income. The source data is a <code>List&lt;IncomeData&gt;</code> (<code>id</code> is the unique id for the person):</p>
  
  <pre><code>public struct IncomeData
  {
      public string id;
      public double household;
      public income;
  }
  
  public double belowAverage = 0, total, belowAveragePercent;
  
  IncomeData surveyStruct;
  List&lt;IncomeData&gt; surveyList = new List&lt;IncomeData&gt;();
  List&lt;string&gt; aboveAverage = new List&lt;string&gt;();
  </code></pre>
  
  <p>Here is how I determine if a person has above average income. If a person has above average income, I add the <code>id</code> and <code>income</code> from the temporary instance of the <code>surveyStruct</code> to the above average list of string values:</p>
  
  <pre><code>//Determine poverty.
  if (surveyStruct.income - 3480 * surveyStruct.household &lt;= 6730)
  {
      belowAverage += 1;
  }
  else if (surveyStruct.income - 3480 * surveyStruct.household &gt;= 6730)
  {
      aboveAverage.Add(surveyStruct.id);
      aboveAverage.Add(surveyStruct.income.ToString());
  }
  </code></pre>
  
  <p>And here is the code that displays the desired information in a message box. (The <code>aboveAverage</code> list is added in here, too.)</p>
  
  <pre><code>private void reportsToolStripMenuItem_Click(object sender, EventArgs e)
  {
      //Display reports 1, 2, and 3.
      MessageBox.Show("Your Entry:\nID Code: " + surveyStruct.id +
         "\nHousehold: " + surveyStruct.household.ToString() +
         " people\nIncome: " + surveyStruct.income.ToString("C") +
         "\n\nPeople Above Average:\n" + aboveAverage +
         "\n\nAnd " + belowAveragePercent + "% of people are below average.");
      }
  </code></pre>
  
  <p><strong>Now, here's the problem:</strong> Instead of a seeing a list of values in the message box, I am seeing <code>System.Collections.Generic.List</code>&#96;<code>1[System.String]</code> where the IDs and incomes of the above average people should be. Can somebody please tell me what I am doing wrong and how I can display a list values in a message box?</p>