• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.



Page history last edited by Corey Alix 14 years, 3 months ago

About LINQ

Applies a SQL like syntax to .NET collections


LINQ Code Snippets

How many root folders contain a space:

                var lvInfo = new System.IO.DirectoryInfo("C:\\");

                var lvCollection = lvInfo.GetDirectories();
                var lvItems = from n in lvCollection where (0 < n.Name.IndexOf(' ')) select n.FullName;
                Console.WriteLine("{0} items contain a space", lvItems.Count());


Comments (0)

You don't have permission to comment on this page.