C# Compiler Error – CS8157 cannot return ‘{0}’ by reference because

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

C# Compiler Error Code

CS8157

C# Compiler Description for the Code :CS8157

Cannot return ‘{0}’ by reference because it was initialized to a value that cannot be returned by reference