Browse by Tags

All Tags » LINQ » Functional Programming
Showing page 1 of 4 (35 total posts)
  • Leaving Microsoft, Blog Moving to EricWhite.com

    Due to personal obligations (moving away from Seattle) it is with sadness that I’m announcing that I’m leaving Microsoft.  My last day at Microsoft will be January 21.  This will be the last post on this blog.  I will be commencing to blog at EricWhite.com/blog.  Here is what I'm planning for the near future on my ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on January 19, 2011
  • Table Markup in Open XML SpreadsheetML

    Tables are a feature in Open XML spreadsheets that allow you to interact with data more like a database.  You can select a region and convert it to a table.  Most Excel aficionados are familiar with this feature.  It is very useful.   In a previous post, Using LINQ to Query Excel Tables, I presented some code that allows you ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 21, 2010
  • Hex Dump using LINQ (in 7 Lines of Code)

    At one point while debugging the HtmlConverter class, when I found certain situations in the XML, I wanted to dump the XML in binary to see the actual hex values of characters being used.  I got tired of stopping and examining the values in the debugger.  I did a couple of searches, and found some sample C# code to implement a simple hex ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on March 12, 2010
  • Ad-Hoc String Concatenation using LINQ

    I regularly use functional programming and LINQ in two contexts – when writing code that is part of an example or tool that will potentially execute millions of times, and when writing ad-hoc queries.  These days, I use C# and LINQ as my ‘scripting language’, to iterate through directory structures, open and process Open XML documents, and do ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on March 10, 2010
  • Rollup Extension Method: Create Running Totals using LINQ to Objects

    Recently, I had need for a new extension method for IEnumerable<T>, which I call ''Rollup''.  This extension method is sort of a cross between the Select and Aggregate extension methods.  Like Select, when using this extension method you write a lambda expression to project the new value in a new collection.  Unlike Select, in ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on February 15, 2010
  • Writing Entity References using LINQ to XML

    I need to write out some XHtml, and in several places, I want that XHtml to contain entities references.  However, you can't simply write the entitle reference like this: XElement p = new XElement(''p'', ''&nbsp;&nbsp;Hello''); Console.WriteLine(p);   LINQ to XML will replace the ampersands with its ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on January 21, 2010
  • DescendantsAndSelfTrimmed LINQ to XML Axis Method

    [Blog Map] There are some circumstances where I need a variation on the DescendantsAndSelf axis method that allows me to specify that specific elements (and the descendants of those elements) are ‘trimmed’ from the returned collection.  One of the things that's great about LINQ to XML is the ease with which we can create specialized axis ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on August 19, 2009
  • Merging Comments from Multiple Open XML Documents into a Single Document

    Microsoft Word 2007 allows you to lock a document, prohibiting users from making changes to content, while allowing them to add comments.  If we have multiple documents that have the same content yet different comments, we can merge those comments into a single document.  One possible use would be a specification review ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 27, 2009
  • Recursive Approach to Pure Functional Transformations of XML

    [Blog Map] Writing pure functional transformations a in a recursive style enables us to put together interesting transformations in a very small amount of code.  Using some specific techniques that allow us to write this code very concisely, this approach takes advantage of some perhaps obscure semantics of LINQ to XML.  I’ve used ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 20, 2009
  • A Tutorial in the Recursive Approach to Pure Functional Transformations of XML

    [Blog Map] Writing pure functional transformations a in a recursive style enables us to put together interesting transformations in a very small amount of code.  Using some specific techniques that allow us to write this code very concisely, this approach takes advantage of some perhaps obscure semantics of LINQ to XML.  I’ve used ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 20, 2009
1 2 3 4 Next >