Quantcast
Channel: LINQ – Brian Pedersen's Sitecore and .NET Blog
Browsing index pages (5 articles)
↧

C# Lists in Lists – Getting all inner values, or the unique inner values

Getting the inner value of a list inside a list can seem complicated in C#, but LINQ makes it easier. But first let’s make a list in a class, and then make a list of the class with the list of classes...

View Article


Manipulating XML Google Merchant Data using C# and LINQ

Receiving a Google Merchant Data feed (also known as a Google Product Feed) can be fairly easily manipulated on import time using a little C# and LINQ. The feed is basically a XML RSS 2.0 feed with...

View Article


Remove duplicates from XML feed

Apparently XML isn’t dead yet, and today I received a Google Product Feed in the RSS 2.0 XML format. The feed was full of duplicates and my job is to remove them: <?xml version="1.0"...

View Article

Image may be NSFW.
Clik here to view.

Simple string keyword search using ExtensionMethods and LINQ

This is a case I ran into recently. I need to create a multiple OR condition with LINQ. I have a list of user names and I wish to create a simple search where I can match any first name/middle...

View Article

Image may be NSFW.
Clik here to view.

Generic lists and Predicates

Recently I was working with a generic list containing my own Favorite class. My Favorite class contains an url and a title: using System.Collections.Generic; public class Favorites {   private...

View Article

Browsing index pages (5 articles)


Latest Images