Skip to content
0:00 / 0:00

#c##yieldreturn

c# (Csharp):- What is the use of Yield keyword in c# ?

.NET Interview Preparation videos

156K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Intermediate. Assumes working knowledge.

282K views13 years ago1 recommendation

Programming languagesC# and .NET

This video explains the purpose and usage of the yield keyword and yield return statements in C#.

For more such videos visit questpond.com For more such videos subscribe youtube.com/questpondvideos?sub_confirmation=1 See our other Step by Step video series below :- Learn C# Step by Step goo.gl/FNlqn3 Learn Design Pattern Step by Step:- goo.gl/eJdn0m Learn Angular tutorial step by step tinyurl.com/ycd9j895 Learn MVC Core step by step :- tinyurl.com/y9jt3wkv Learn Azure Step by Step :- tinyurl.com/y6fmrech Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP Python Tutorial for Beginners:- youtu.be/KjJ7WzEL-es Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau Learn Power BI Step by Step:- tinyurl.com/y6thhkxw Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN Learn SQL Server Step by Step tinyurl.com/ja4zmwu Learn Tableau step by step :- tinyurl.com/kh6ojyo In this video we will try to understand what is the use of Yield keyword. Yield keyword helps us to do custom stateful iteration over .NET collections. In this video we will understand the same with a full demonstration. We are also distributing a 200 page Ebook ".NET Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.

Why it's here

1 person recommends this

What people say. Recommended as a good video for understanding how the yield keyword works in C#.

u/Neophyte-in r/dotnet • Recommends

On “The anatomy of async iterators (aka await, foreach, yield) in .NET”

…icle is pretty good at explaning the use of the cancellation token. https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken?view=netcore-3.1 good quick guide on dos and donts with async https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md a good video on understanding the yield keyword link to this video As for expression trees and how it ties togeather with the yield keyword for e.g. to build IQueryable to compose a db query. c# in a nutshell has a great chapter on that. Just please never use the predicate builder, terrible pattern.…