Category: C#

C# Compiler Error – CS8852 init-only property or indexer ‘{0}’ can

In this blog post, you’ll learn more about the C# Compiler Error – CS8852 and the related message description C# Compiler Error Code CS8852 C# Compiler Description for the Code :CS8852 Init-only property or indexer ‘{0}’ can only be assigned in an object initializer, or on ‘this’ or ‘base’ in an instance constructor or an ‘init’ accessor.

C# Compiler Warning – CS8767 nullability of reference types in type o

In this blog post, you’ll learn more about the C# Compiler Warning – CS8767 and the related message description C# Compiler Warning Code CS8767 C# Compiler Description for the Code :CS8767 Nullability of reference types in type of parameter ‘{0}’ of ‘{1}’ doesn’t match implicitly implemented member ‘{2}’ (possibly because of nullability attributes).