September 2006 - Posts
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...
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...
You can, of course, use C# anonymous types to create types that are more than simple tuples. For example, you can nest anonymous types to create an object graph: var PurchaseOrder = new { PurchaseOrderNumber = "99503", OrderDate = DateTime.Parse("1999-10-20"),
Read More...
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...