title: C# Console Formatting
body: <p>I'm iterating through a list of objects of type Persons, and displaying the name and surname of each persons.</p>
  
  <pre><code>for (int i = 0; i &lt; myList.Count; i++)
  {
     Console.WriteLine("-|- Name: " + myList[i].GetName() +
                        "| Surname: " + myList[i].GetName() + "|");
  
  }
  </code></pre>
  
  <p>The output in the console is as follows!</p>
  
  <pre><code>-|- Name: Abcdef | Surname: Asqw |
  -|- Name: Aswer | Surname: Asdgfsdf |
  -|- Name: Adxz | Surname: Asdsada |
  </code></pre>
  
  <p>I would like the output to be shown in the form of a table as below.</p>
  
  <pre><code>-|- Name: Abcdef | Surname: Asqw     |
  -|- Name: Aswer  | Surname: Asdgfsdf |
  -|- Name: Adxz   | Surname: Asdsada  |
  </code></pre>
  
  <p>Thanks</p>