Tag: C# Errors

C# Compiler Warning – CS8766 nullability of reference types in return

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

C# Compiler Error – CS8420 the body of an async-iterator method mus

In this blog post, you’ll learn more about the C# Compiler Error – CS8420 and the related message description C# Compiler Error Code CS8420 C# Compiler Description for the Code :CS8420 The body of an async-iterator method must contain a ‘yield’ statement. Consider removing ‘async’ from the method declaration or adding a ‘yield’ statement.

C# Compiler Error – CS0138 a ‘using namespace’ directive can only b

In this blog post, you’ll learn more about the C# Compiler Error – CS0138 and the related message description C# Compiler Error Code CS0138 C# Compiler Description for the Code :CS0138 A ‘using namespace’ directive can only be applied to namespaces; ‘{0}’ is a type not a namespace. Consider a ‘using static’ directive instead

C# Compiler Error – CS1975 the constructor call needs to be dynamic

In this blog post, you’ll learn more about the C# Compiler Error – CS1975 and the related message description C# Compiler Error Code CS1975 C# Compiler Description for the Code :CS1975 The constructor call needs to be dynamically dispatched, but cannot be because it is part of a constructor initializer. Consider casting the dynamic arguments.

C# Compiler Error – CS0767 cannot inherit interface ‘{0}’ with the

In this blog post, you’ll learn more about the C# Compiler Error – CS0767 and the related message description C# Compiler Error Code CS0767 C# Compiler Description for the Code :CS0767 Cannot inherit interface ‘{0}’ with the specified type parameters because it causes method ‘{1}’ to contain overloads which differ only on ref and out