title: how to remove last comma from query C#
body: <p>I am doing something as follows..</p>
  
  <pre><code>querybuilder = ("SELECT Type, Text FROM [Element] WHERE Id IN( ");
  foreach (var item in CaseIdList)
  {
     querybuilder += item + ",";
  }
  querybuilder += ")";
  </code></pre>
  
  <p>at the last insdie the closing bracket  I am getting a comma. How to remove that.</p>