This is part of the "Unity for Beginners" learning path. View Path

C# Collections, Lambdas, and LINQ

Feb 19 2019 · Video Course (2 hrs, 3 mins) · Beginner

Looking to have objects contain other objects? Looking to call code on demand? Want to query your collections like you would query a database? This course will cover all that, and build on what you learned in Beginning C# and Intermediate C#.

4.5/5 2 Ratings · Leave a Rating

Version

  • C# 7, Windows 10, Visual Studio 2017

Collections and Generics

Introduction

5:04 Free

Welcome to the course! Here you'll find an overview of what you'll learn, and the importance of collections.

1

Lists

5:53 Free

Lists are like arrays, but without the hassle of having to resize them. Let's get started with using them.

2

One of the coolest features of C# is how you can initialize an object or collection at the time you create it. Learn how to do that here.

3

Challenge time! Here, your mission is to create your first list to store names. Try it out!

4

Dictionaries

5:29 Free

In this episode, you'll learn the basics of working with dictionaries to store your objects based your own keys.

5

Challenge time! This time, your challenge is to define your very own dictionary. Give it a shot!

6

Need more collection types? This episode provides an overview of all the other collection types at your disposal.

7

Here, you'll see how coding against an interface makes your code resilient to change (always a good thing).

8

No, this isn't about ketchup brands! Learn about what it means to be generic and how to create generic classes

9

On to generic methods: in this episode, you will find out how to make only your methods generic. Let's get started!

10

Conclusion

2:07

You're done with Part 1! This episode concludes the overview of collections and gives a hint at what comes next in Part 2.

11

Delegates, Events, and Lambdas

Part 2 of this course covers constructs that enable you to call code on demand and react when events occurs.

12

Delegates

9:21

This episode introduces delegates, which are powerful tools that can notify several objects at once. Let's get started.

13

Challenge time! Your first challenge in Part 2 is to create your own delegate. Have fun!

14

Introducing anonymous delegates: this episode shows you how to create a delegate without defining an object.

15

Here, you'll learn about two different types that make it easy to define your own anonymous delegate types.

16

Events

5:41

Events work with delegates to call code at defined points in your code. Learn how to use them in this episode.

17

Lambda

6:14

Not just for fraternities and sororities: Learn how to use lambdas to make your code clean and concise.

18

Challenge Time! In the last challenge of Part 2, you'll write your very own lambda. Try it out!

19

You learned a lot in this part of the course! Next up, you'll move on to another key concept: LINQ.

20

LINQ

In Part 3 of this course, you'll learn about the concept of LINQ and why it so powerful. Let's get started!

21

In this episode, you'll find an overview of query syntax and method sytax, plus a comparison of the two of them.

22

Query Syntax

10:13

Let's dive deeper into query syntax: this episode gives you more information on query syntax and how to use it.

23

Challenge time! In this challenge, your mission is to write a LINQ query using query syntax.

24

Let's move on to method syntax: this episode shows you how to write LINQ queries using method syntax.

25

One more challenge for the course! In this challenge, you'll rewrite your query syntax to use method syntax.

26

This episode lets you know about LINQ's execution model and how it affects your queries.

27

This video covers all the topics that weren't covered in the this three part course.

28

Conclusion

2:14

Congrats on finishing the C# Collections, Lambdas, and LINQ course! Here we'll review what you learned and give you tips on where to go next.

29

Contributors

Comments