C#: LINQ – Set Operator

Please see my other LINQ articles. Use LINQ to update values during a query. This article will demonstrate how to perform a SET, similar to sql SET during a query. First, I’ll populate a List<T> collection of Person objects. Now, I’ll call ForEach() on each person object, assigning the length of FirstName to the FNameLen property of…

C#: LINQ – Filtering by Custom Extension

Please see my other LINQ articles. Extending LINQ to perform custom searches In this article, I’ll demonstrate how to create a custom extension in LINQ which may be used to extend searching capability on collections. In my C#: Json – Populate objects from a file I demonstrated how to read objects from a file. Now, I’ll update…

C#: LINQ – Query

Please see my other LINQ articles. Performing a simple query. Using Microsoft’s new elegant syntax or subset of the .NET framework that looks like it might be replacing ADO.NET, I will illustrate how to perform a simple query. This new syntax is much less bulky than executing the same query using ADO.NET commands. First, I’ll begin by…