C# Compiler Error – CS1622 cannot return a value from an iterator.

In this blog post, you’ll learn more about the C# Compiler Error – CS1622 and the related message description

C# Compiler Error Code

CS1622

C# Compiler Description for the Code :CS1622

Cannot return a value from an iterator. Use the yield return statement to return a value, or yield break to end the iteration.