Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From System.Collections.Generic.IEnumerable to string
Message
From
06/05/2015 10:12:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/05/2015 08:17:58
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619437
Message ID:
01619470
Views:
27
>Thanks, but I am still wondering if this would work when the separator is not known.

It just works. And a little correction to my previous reply, you don't need to use ToString(). ie:
' arbitrary types of items
Dim myList = {"Hello there at ", DateTime.Now(),". ", 4, " times ", 5, " is ", 4*5 }

' sep is unknown
dim sep as string

Dim Result = String.Join(sep, myList)

Console.WriteLine( Result )
Outputs:
Hello there at 5/6/2015 5:11:48 PM. 4 times 5 is 20
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform