Welcome to MSDN Blogs Sign in | Join | Help

September 2006 - Posts

Notes on Implementing the Visitor Pattern using Extension Methods
Well, I've checked with one of the experts, Dr. Ralf Lämmel , and he confirmed: as soon as you use a StringBuilder, it's not pure. So example 4 in LINQ to XML: Implementing the Visitor Pattern using Extension Methods can't be said to be pure. However, Read More...
LINQ to XML: Implementing the Visitor Pattern using Extension Methods
We often use the Visitor pattern to separate the structure of an object tree or collection from the operations performed on that tree or collection. There are lots of ways in LINQ where you can visit some function on a collection, but when implementing Read More...
Fun with Anonymous Types and LINQ to XML
(August 2, 2008: This post uses the wrong approach. I've written a new post that shows the way to accomplish the same thing in the functional style.) You can, of course, use C# anonymous types to create types that are more than simple tuples. For example, Read More...
More Notes on LINQ to Text Files
Following are a few additional notes regarding the Linq to Text Files example. Taking Advantage of Multiple CPUs If you have some type of computing where you need to process large text files, and the processing of the text files is processor intensive, Read More...
Page view tracker