title: How can I loop through a List<T> and grab each item?
body: <p>How can I loop through a List and grab each item? </p>
  
  <p>I want the output to look like this:</p>
  
  <pre><code>Console.WriteLine("amount is {0}, and type is {1}", myMoney.amount, myMoney.type);
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      List&lt;Money&gt; myMoney = new List&lt;Money&gt; 
      {
          new Money{amount = 10, type = "US"},
          new Money{amount = 20, type = "US"}
      };
  }
  
  class Money
  {
      public int amount { get; set; }
      public string type { get; set; }
  }
  </code></pre>