title: Create string line comma separated
body: <p>I have 6 bool "categories": </p>
  
  <pre><code>Category0, Category1, Category2, Category3, Category4, Category5.
  </code></pre>
  
  <p>I also have a "String ListCat" variable. This variable must look like something like:</p>
  
  <pre><code>ListCat = "0,1,2,3,4,5"
  </code></pre>
  
  <p>Where "0" is displayed if Category0 = true, "1" if category1 = true...</p>
  
  <p>For exemple : </p>
  
  <pre><code>Categorie0 = true;
  Catgorie1 = true;
  Categorie5 = true;
  </code></pre>
  
  <p>Then ListCat would be like : </p>
  
  <pre><code>ListCat ="0,1,5"
  </code></pre>
  
  <p>I have to do this to complete this query :</p>
  
  <pre><code>string StSQL = @"SELECT [Type Jour] FROM CodificationTypesJour where Categorie IN (" + ListCat + ");
  </code></pre>
  
  <p>How can I do that, with the commas included?</p>
  
  <p>Thanks in advance.</p>