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

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

C# Compiler Error Code

CS1624

C# Compiler Description for the Code :CS1624

The body of ‘{0}’ cannot be an iterator block because ‘{1}’ is not an iterator interface type