Posts tagged as linq.

Posts are listed in reverse chronological order, newest to oldest.


  • Using LINQ to Easily Serialize an Exception to XML

    I was working on my capstone project last semester, and ran into a need to log exception data to a portable format. I loves me some XML, so that was my obvious (and, let's be honest, only) choice. .NET includes a lot of built-in code in most data types to allow for seamless serialization, so I thought this would be a simple matter.

  • C#, XML, and LINQ: Deleting an XML Node

    So far we've learned how to load & parse an XML file, add new nodes to it, and update it's nodes. Today we're gonna learn the scary part: deleting nodes.

  • C#, XML, and LINQ: Updating an XML File

    So far, I have shown you how to load and parse an XML document into a C# class, and also how to add new nodes to an XML document using C#. So now we have reached the fun part: updating an existing node!

  • C#, XML, and LINQ: Adding Nodes to an XML File

    My previous example only covered loading and parsing an XML document. This example will include the code I used to add new nodes to the XML tree.

  • C#, XML, and LINQ: Load & Parse an XML File

    I promised an example of using LINQ and C# together before the month was out, and it here it is! Whoo. Go me.

  • Fun with LINQ

    Anyone who's read any amount of the content I've put on this site knows I love the C# language. It has a lot of capabilities I find really useful, like strong-typing, properties, generics, etc. I also like that C# has implemented one of the more interesting technologies Microsoft has developed recently: LINQ. LINQ stands for Language-Integrated Query, and is a technology we can use to simplify the processing of structured data within the .NET Framework.