Add vbCrLf to the selected value : Select « LINQ « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » LINQ » SelectScreenshots 
Add vbCrLf to the selected value
  

Imports System
Imports System.Collections.Generic
Imports System.Data
Imports System.Linq
Imports System.Text
Imports System.Globalization

Module Example
   Public Sub Main()

      Dim QueryString As String() = New String() {"One""Two""Three""Four""Five"}
      Dim ThisQuery = From StringValue In QueryString Select StringValue + vbCrLf
      For Each ThisValue In ThisQuery
         Console.WriteLine(ThisValue)
      Next


   End Sub 
End Module 

   
    
  
Related examples in the same category
1.Renaming property in Select
2.Using Select to return a sequence of project names
3.Query Date with Linq
4.Query Reuse with deferred execution
5.Using Concat to create one sequence that contains each array's values
6.Using an indexed SelectMany clause
7.Using Concat to create one sequence
8.Using linq to query the Registry
9.Shows all keys under HKLM\Software that start with the letter C
10.Shows shortcuts to everything under My Recent Documents
11.Counts how many items are in your Favorites folder
12.Uses reflection to show all System assemblies which are currently loaded
13.Projecting Select
14.Using Select to produce a sequence of Integers one value higher
15.Transformation Select
16.Using Select to produce a sequence of strings from a sequence of Integers
17.Anonymous Types in Select Clause
18.Using Select to produce a sequence of each word in an array with new case.
19.Using 'Select New With' to create new objects
20.Using Select to produce a sequence of new objects from two arrays with calculation
21.Using an indexed Select clause to determine if the value of Integers match their position
22.Combine Select and Where to get value from an array based on the value from another array
23.Check for the second letter from each word in an array
24.Use a loop to print out each value in Linq query result
25.num is called the range variable which will take turns representing each value in the array.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.