Just published on DevX: "Using LINQ to Manage File Resources and Context Menus" (http://www.devx.com/dotnet/Article/41639)
This article takes a fairly simple technique involving LINQ-to-Objects and extension methods (both new concepts in C# 3.0) and uses it as the heart of two moderate complexity components that could themselves be immediately incorporated as building blocks in a production application. What is interesting is that the two components are quite different on the surface:
-- the ResourceMgr that manages an application's external (file) resources (http://cleancode.sourceforge.net/api/csharp/CleanCode.IO.ResourceMgr.html).
-- the MenuBuilder that initializes choices in a context menu upon opening it (http://cleancode.sourceforge.net/api/csharp/CleanCode.Forms.MenuBuilder.html).
I present a thorough discussion of the LINQ and extension methods that comprise the key portions of the code.
The CleanCode project provides a collection of well-documented developer components in a variety of languages (C#, Java, Perl, SQL, and JavaScript) comprising applications, engines, and .NET controls. Documentation consists of API docs as well as articles published in journals and/or on the CleanCode site. Further details of all the tools and components are available on the Products page (http://cleancode.sourceforge.net/wwwdoc/software.html).
::HANDY LINKS::
Products: http://cleancode.sourceforge.net/wwwdoc/software.html
Articles: http://cleancode.sourceforge.net/wwwdoc/articles.html
Home Page: http://cleancode.sourceforge.net/