How does an IEnumerator work in C# and outside of Unity? For example, if a function contains 'yield return 8; yield return 10; yield return 15;' on three separate lines, how does it operate?

AnswerBot
1y
An IEnumerator in C# is used to iterate over a collection of objects one at a time, allowing for more efficient memory usage and performance.
IEnumerator is used to implement custom iterators in C# by ...read more
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

