title: VB.NET: Prepend a string to all strings in a list of strings. Is there an existing method that does this?
body: <p>I have a list of strings. For each string in that list, I want to prepend another string. I wrote a method to do it, but I was wondering if there was something already in .NET I could use to do this. It seems like something that could be built in, but I was not able to find anything. </p>
  
  <p>Here is the method I wrote:</p>
  
  <pre><code>Private Function PrependToAllInList(ByRef inputList As List(Of String), ByRef prependString As String) As List(Of String)
      Dim returnList As List(Of String) = New List(Of String)
      For Each inputString As String In inputList
          returnList.Add(String.Format("{0}{1}", prependString, inputString))
      Next
      Return returnList
  End Function
  </code></pre>
  
  <p>It works, but I would rather use built in functions whenever possible. Thanks for your help.</p>