Tag: C# Errors

C# Compiler Error – CS8661 cannot specify ‘readonly’ modifiers on b

In this blog post, you’ll learn more about the C# Compiler Error – CS8661 and the related message description C# Compiler Error Code CS8661 C# Compiler Description for the Code :CS8661 Cannot specify ‘readonly’ modifiers on both accessors of property or indexer ‘{0}’. Instead, put a ‘readonly’ modifier on the property itself.