New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: VB.NET

For Each LINQ

32 Views
Copy Code Show/Hide Line Numbers
   1:      For Each item As String In From number In Split(text, " ") Order By number Select number
   2:        If Not String.IsNullOrEmpty(item) AndAlso item.Length <= 20 Then ticketNumbers.Add(item)
   3:      Next
by Martin Harris
  February 08, 2010 @ 5:48pm
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate