Getting Started With Linq In C#


Getting Started With Linq In C#
Published 10/2024
MP4 | Video: h264, 1920×1080 | Audio: AAC, 44.1 KHz

What you’ll learn

Understand the key differences between LINQ and loops

Use the most common LINQ methods to work with collections

Identify and fix common mistakes when using LINQ with collections

Use LINQ to refactor away from conditionals

Learn new LINQ methods and overloads from recent .NET versions

Requirements

Know the C# syntax to declare and initialize objects

Write conditionals (such as if, else, and switch) and loops (such as for, while, and foreach)

Work with collections like arrays and lists

Have the latest version of the .NET SDK installed

Description

Overview

Section 1: Introduction

Lecture 2 What’s LINQ?

Section 2: LINQ vs. Loops

Lecture 3 Filter Collections Using Where

Lecture 4 Understand the IEnumerable Type

Lecture 5 Use LINQ with Older Versions

Lecture 6 Write Extensions Methods

Lecture 7 Write Delegates Using Func and Action
Lecture 8 Write Lambda Expressions

Lecture 9 Exercise: Find Your Favorite Movies

Lecture 10 LINQ and Declarative Programming

Lecture 11 LINQ and Immutability

Lecture 12 LINQ and Laziness

Lecture 13 Wrap-up!

Section 3: Most Common LINQ Methods

Lecture 14 Transform a Collection With Select

Lecture 15 Transform a Collection Using the Position of Elements

Lecture 16 Query Collections with Any and All

Lecture 17 Group Elements of a Collection

Lecture 18 Group Elements and Transform Every Group

Lecture 19 Group Elements by More Than One Property

Lecture 20 Use Anonymous Objects With GroupBy

Lecture 21 Order Elements of a Collection

Lecture 22 Choose One Element with First and FirstOrDefault

Lecture 23 Choose One Element with Last and LastOrDefault

Lecture 24 Choose One Element with Single and SingleOrDefault

Lecture 25 Choose and Leave Out Elements with Take and Skip

Lecture 26 Exercise: Write a Paginate Method

Lecture 27 Exercise: Refactor From Loops to LINQ

Lecture 28 Query Collections of Numbers With Sum, Min, and Max

Lecture 29 Flatten a Collection of Collections With SelectMany

Lecture 30 Find Unique Elements With Distinct

Lecture 31 Perform Set Operations With Intersect, Union, and Except

Lecture 32 Exercise: Use LINQ Methods

Lecture 33 Carry An Operation With Aggregate

Lecture 34 Use LINQ Query Syntax

Lecture 35 Wrap-up!

Section 4: Common LINQ Mistakes

Lecture 36 Use the Right LINQ Methods

Lecture 37 Write Null Checks with FirstOrDefault

Lecture 38 Avoid Multiple Evaluations of a LINQ Query

Lecture 39 Exercise: Remove Mistakes

Lecture 40 Wrap-up!

Section 5: Refactoring With LINQ

Lecture 41 Replace Comparisons with Any

Lecture 42 Replace a Set of Choices with FirstOrDefault

Lecture 43 Validate Objects With All

Lecture 44 Exercise: Add a Recommended Movie

Lecture 45 Wrap-up!

Section 6: New LINQ Features

Lecture 46 Split a Collection Into Buckets With Chunk

Lecture 47 Find Unique Elements With DistinctBy

Lecture 48 Use Take Method with Ranges

Lecture 49 Use FirstOrDefault with a Safe Default

Lecture 50 Count Elements of a Collection With CountBy

Lecture 51 Select Elements And Their Position With Index

Lecture 52 Wrap-up!

Section 7: Conclusion

Lecture 53 Wrap-up!

C# developers who want to write more compact and expressive code when working with collections,C# developers looking to stay up-to-date with LINQ features in recent .NET versions

Importantissimo!

Per NON SBAGLIARE link e finire su qualche possibile clone, approfittare di offerte esclusive personalizzate per il nostro sito, e se gradisce questo articolo ed il nostro lavoro, la preghiamo di supportarci rinnovando o sottoscrivendo un Account Premium su FILESTORE cliccando sul link qui sotto:

FileStore

Share This Post!

Torna in cima