C# Compiler Error – CS8154 the body of ‘{0}’ cannot be an iterator

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

C# Compiler Error Code

CS8154

C# Compiler Description for the Code :CS8154

The body of ‘{0}’ cannot be an iterator block because ‘{0}’ returns by reference