This keyword can be used when returning a value from a function.
A normal "return" does not preserve the state of the function while returning.
Using "yield return" the function is able to save its state while returning the value.
When the function is called a second time, it will continue the processing from where it has returned in the previous call.
© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext