title: c# listbox multiselect, selectedItems winforms
body: <p>I saw many examples of getting the values from selectedItems, but in my case I would like to somehow separate these values. What I mean is, for example if I have in my list options like <code>work</code> <code>home</code> <code>forrest</code> <code>car</code>, I would like to be able after choosing <code>work</code> and <code>home</code> to get both text separated and save them in some string variable. 
  Now I am doing it this way:</p>
  
  <pre><code>string text = "";
  foreach (var item in customListBox1.SelectedItems)
  {
       text += item.ToString() + " ";
  }
  </code></pre>
  
  <p>Later I am filtering datagridview based on this selecteditems in such way:</p>
  
  <pre><code>var result = list3.Where(Srodek =&gt; Srodek.Srodek.category1 == text);
  </code></pre>
  
  <p>That is why I need them separated. How can I do it?
  If something is not clear, please let me know, I will try to explain it more.</p>