How to Convert Arraylist to String using .Net

  1. Public Overloads Function ArrayListToString(ByVal ar As System.Collections.ArrayList) As String
  2.  Return ArrayListToString(ar, ","C)
  3. End Function
  4.  
  5. Public Overloads Function ArrayListToString(ByVal ar As System.Collections.ArrayList, ByVal delim As Char) As String
  6.  Return ArrayListToString(ar, delim.ToString)
  7. End Function
  8.  
  9. Public Overloads Function ArrayListToString(ByVal ar As System.Collections.ArrayList, ByVal delim As String) As String
  10.  Return String.Join(delim, CType(ar.ToArray(GetType(String)), String()))
  11. End Function

, , ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth