title: To get specific part of a string in c#
body: <p>I have a string   </p>
  
  <pre><code>string a = "abc,xyz,wer";
  </code></pre>
  
  <p>Now, I need a part of this string like</p>
  
  <pre><code>string b = "abc";
  </code></pre>
  
  <p>I need everything before the first comma.How shall I get it?</p>