C# Essentials: Linq for Lists - Sorting, Filtering, and Aggregating Lists Easily

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • Having a List for an object is a fairly common occurrence in C#. In fact, most data access systems end with having the data in a List. This video will help you see how to sort, filter, and operate on lists easily and powerfully.
    You will see examples both in a Console application and in a Windows Forms application. This practical example dives right into the most important parts of Linq to get you up and running in minutes.
    Get the Starter Code: leadmagnets.app/?Resource=Lin...
    Mailing List: signup.iamtimcorey.com/
    0:00 - Intro
    0:43 - demo app walkthrough
    3:56 - for each item in the list, do this - foreach loop.
    5:24 - sorting the list of items by item property: OrderBy
    8:42 - sort the list descending: OrderByDescending
    9:29 - sort the list by more than one parameter: ...ThenBy
    11:18 - filter the list: Where(bool true)
    15:14 - Sum of the countable property of objects in the list
    16:20 - combining list methods: Where and Sum
    18:29 - using Linq in applications - WinForm app walk-through: (data binding, events)
    22:55 - Implementing Linq

Комментарии • 320