What is yield in c#?



What is yield in c#?..

Answer / Brajesh Kumar Bharati

Yield is a keyword in C# that allows you to create iterators. Iterators are objects which provide a way to access the elements of a collection one at a time, without loading all of them into memory at once. The yield keyword generates the sequence on demand.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is eager loading in c#?

1 Answers  


What's new in c#?

1 Answers  


What is Signature and parameter in overloading ?

3 Answers  


How can we sort the elements of the array in descending order?

1 Answers  


Can derived classes have greater accessibility than their base types?

1 Answers  


Is c# lazy thread safe?

1 Answers  


How does bitwise xor work?

1 Answers  


When was c# created?

1 Answers  


What are the string functions in c#?

1 Answers  


How can we give strong name to assembly? What is satellite assembly?

2 Answers   SMNetserv,


What is meant by generics in c#?

1 Answers  


Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio ?

1 Answers  


Categories