title: How to convert from string array to sortedSet
body: <p>I need to extract(the easy part) a list of integers given through an array of strings gotten from:  someString.split(separator)  What I need is to put that resulting array(string) in a sortedSet How do I convert that? I've tried different things.</p>
  
  <p>the current code is in VB</p>
  
  <pre><code>Dim _ports As New SortedSet(Of Integer) = Array.ConvertAll(portString.Split(","),Integer.Parse())
  </code></pre>
  
  <p>I've tried this but is not correct.
  I know that is simple to iterate though every single item and put it into the sortedSet but, is there any way to do it directly.</p>