Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From System.Collections.Generic.IEnumerable to string
Message
From
06/05/2015 08:39:45
 
 
To
05/05/2015 16:30:54
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:
01619462
Views:
40
Likes (1)
>>Do you want to concatenate all strings in that collection into one final string? If yes, I would probably use StringBuilder and loop through collection.
>
>So far, I have this:
>
>
>                                Dim lcFinal As String = ""
>                                Dim lcString As String = ""
>
>                                For Each lcString In loEventLogRecord.KeywordsDisplayNames
>                                    lcFinal = lcFinal + lcString
>                                Next
>
As said, for this example use string.Join
lcFinal = String.Join(null, loEventLogRecord.KeywordsDisplayNames)
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform