Intro to Yield in C# - What it is, how to use it, and when it is useful

IAmTimCorey
IAmTimCorey
72.5 هزار بار بازدید - 3 سال پیش - The yield keyword in C#
The yield keyword in C# can be a confusing one, so in this video, we are going to go over what yield is, how it works, and how to best take advantage of it in our code.

Full Training Courses: https://IAmTimCorey.com
Source Code: https://leadmagnets.app/?Resource=Int...

Mailing List:  https://signup.iamtimcorey.com/

0:00 - Intro
1:10 - Creating console app
1:58 - What is Yield in C#
2:34 - Writing demo code
8:03 - Demo code result analysis
9:56 - How to use Yield
13:07 - Debugging Yield
16:55 - Benefit of using Yield
20:01 - Limiting Yield returns
31:57 - Iterating collection of IEnumerable
36:41 - Why not to Yield results to List
41:21 - Summary and concluding remarks
Thanks Ralfs HBK
3 سال پیش در تاریخ 1400/05/04 منتشر شده است.
72,524 بـار بازدید شده
... بیشتر