Extend LINQ to query different data sources (VBLinqExtension)

This code sample demonstrates extending the LINQ technology to access CSV files, File System information, .NET assemblies(Reflection), and string text.

VB.NET (77.9 KB)
 
 
 
 
 
(0)
8,943 times
Add to favorites
5/5/2011
E-mail Twitter del.icio.us Digg Facebook
===============================================================================
       WINDOWS FORMS APPLICATION : VBLinqExtension Project Overview
===============================================================================

/////////////////////////////////////////////////////////////////////////////
Use:

The VBLinqExtension sample demonstrates the Microsoft Language-Integrated 
Query (LINQ) technology to access CSV files, File System information, .NET
assemblies(Reflection), and string text.  


/////////////////////////////////////////////////////////////////////////////
Code Logic:

1. LINQ to CSV:

   A simple LINQ to CSV library to load simple CSV files into string arrays 
   line by line. 
   The CSV file stores All-In-One Code Framework project information and its 
   format:
   (Project Name, Program Language, Description, Owner)
   
2. LINQ to File System:
   
   A simple LINQ to File System library to show files grouped by extension 
   names under one folder, and to display the largest file name and the size.
   
3. LINQ to Reflection:

   A simple LINQ to Reflection library to display the methods of the exported 
   class in an assembly grouped by return value type.
   
4. LINQ to String:

   A simple LINQ to String library to show the digis characters in a string,
   to count occurrences of a word in a string, and to query for sentences 
   that contain a specified set of words.
   

/////////////////////////////////////////////////////////////////////////////
References:

How to: Query for the Largest File or Files in a Directory Tree (LINQ)
http://msdn.microsoft.com/en-us/library/bb546154.aspx

How to: Group Files by Extension (LINQ)
http://msdn.microsoft.com/en-us/library/bb546135.aspx

How to: Query An Assembly's Metadata with Reflection (LINQ)
http://msdn.microsoft.com/en-us/library/bb546150.aspx

How to: Add Custom Methods for LINQ Queries
http://msdn.microsoft.com/en-us/library/cc981895.aspx

How to: Query for Characters in a String (LINQ)
http://msdn.microsoft.com/en-us/library/bb397940.aspx

How to: Count Occurrences of a Word in a String (LINQ)
http://msdn.microsoft.com/en-us/library/bb546166.aspx

How to: Query for Sentences that Contain a Specified Set of Words (LINQ)
http://msdn.microsoft.com/en-us/library/bb546163.aspx

How to: Combine LINQ Queries with Regular Expressions
http://msdn.microsoft.com/en-us/library/bb882639.aspx


///////////////////////////////////////////////////////////////////////////////////