Browse by Tags

All Tags » LINQ to XML (RSS)

Grouping with LINQ to XML

One of the major improvements in XSLT 2.0 is grouping where the xsl:for-each-group element supports four different grouping ways with group-by, group-starting-with, group-ending-with and group-adjacent. Unfortunately Microsoft does not support XSLT 2...
Posted by Martin Honnen | with no comments

Exploiting covariance with LINQ to XML

In my last post I showed how the new contravariance feature in .NET 4.0/Visual Studio 2010 for type parameters of generic interfaces makes coding with LINQ to XML easier and more straightforward. In this post I will show how the covariance of the type...

Exploiting contravariance with LINQ to XML

Covariance and contravariance for generic interfaces are new features in C# and VB.NET in Visual Studio 2010 respectively the .NET framework 4.0. Generic interfaces like IEnumerable<T> or IEqualityComparer<T> in the .NET framework 4.0 use...

What is new in System.Xml in .NET 4.0/Visual Studio 2010

Beta 1 of the .NET framework 4.0 and of Visual Studio 2010 has been released a few days ago. Although the "What's new" document does not list any new features in System.Xml or LINQ to XML I am browsing through the documentation to find new...