title: Concatenate All Properties to a String with LINQ
body: <p>I have a class like this:</p>
  
  <pre><code>public class MyClass
  {
      public int Line;
      public string Name1;
      public string Name2;
  }
  </code></pre>
  
  <p>and a collection of MyClass objects:</p>
  
  <pre><code>List&lt;MyClass&gt; myObjs = myService.GetObjects();
  </code></pre>
  
  <p>where <code>myObjs</code> has 2 elements:</p>
  
  <pre><code>[0]: Line: 1, Name1: "Test1", Name2: "Test2"
  [1]: Line: 2, Name1: "Test3", Name2: "Test4"
  </code></pre>
  
  <p>I'd like to get every object with their properties concatenated in a string like:</p>
  
  <pre><code>"1,Test1,Test2;2,Test3,Test4"
  </code></pre>
  
  <p>I tried <code>string.Join(",", myObjs.Select(x =&gt; x.Line));</code></p>
  
  <p>but that only gives me a list of all the Line values. I need everything in the object.</p>