Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From System.Collections.Generic.IEnumerable to string
Message
De
06/05/2015 10:12:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/05/2015 08:17:58
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01619437
Message ID:
01619470
Vues:
26
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform