Tag: C# Errors

C# Compiler Error – CS1997 since ‘{0}’ is an async method that retu

In this blog post, you’ll learn more about the C# Compiler Error – CS1997 and the related message description C# Compiler Error Code CS1997 C# Compiler Description for the Code :CS1997 Since ‘{0}’ is an async method that returns ‘Task’, a return keyword must not be followed by an object expression. Did you intend to return ‘Task’?

C# Compiler Warning – CS8425 async-iterator ‘{0}’ has one or more par

In this blog post, you’ll learn more about the C# Compiler Warning – CS8425 and the related message description C# Compiler Warning Code CS8425 C# Compiler Description for the Code :CS8425 Async-iterator ‘{0}’ has one or more parameters of type ‘CancellationToken’ but none of them is decorated with the ‘EnumeratorCancellation’ attribute, so the cancellation token parameter from the generated ‘IAsyncEnumerable.GetAsyncEnumerator’ will be unconsumed

C# Compiler Error – CS0281 friend access was granted by ‘{0}’, but

In this blog post, you’ll learn more about the C# Compiler Error – CS0281 and the related message description C# Compiler Error Code CS0281 C# Compiler Description for the Code :CS0281 Friend access was granted by ‘{0}’, but the public key of the output assembly (‘{1}’) does not match that specified by the InternalsVisibleTo attribute in the granting assembly.