Category: C#

C# Compiler Error – CS1622 cannot return a value from an iterator.

In this blog post, you’ll learn more about the C# Compiler Error – CS1622 and the related message description C# Compiler Error Code CS1622 C# Compiler Description for the Code :CS1622 Cannot return a value from an iterator. Use the yield return statement to return a value, or yield break to end the iteration.

C# Compiler Error – CS8505 a default literal ‘default’ is not valid

In this blog post, you’ll learn more about the C# Compiler Error – CS8505 and the related message description C# Compiler Error Code CS8505 C# Compiler Description for the Code :CS8505 A default literal ‘default’ is not valid as a pattern. Use another literal (e.g. ‘0’ or ‘null’) as appropriate. To match everything, use a discard pattern ‘_’.

C# Compiler Warning – CS8785 generator ‘{0}’ failed to generate sourc

In this blog post, you’ll learn more about the C# Compiler Warning – CS8785 and the related message description C# Compiler Warning Code CS8785 C# Compiler Description for the Code :CS8785 Generator ‘{0}’ failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type ‘{1}’ with message ‘{2}’

C# Compiler Error – CS1730 assembly and module attributes must prec

In this blog post, you’ll learn more about the C# Compiler Error – CS1730 and the related message description C# Compiler Error Code CS1730 C# Compiler Description for the Code :CS1730 Assembly and module attributes must precede all other elements defined in a file except using clauses and extern alias declarations

C# Compiler Error – CS1758 cannot embed interop type ‘{0}’ found in

In this blog post, you’ll learn more about the C# Compiler Error – CS1758 and the related message description C# Compiler Error Code CS1758 C# Compiler Description for the Code :CS1758 Cannot embed interop type ‘{0}’ found in both assembly ‘{1}’ and ‘{2}’. Consider setting the ‘Embed Interop Types’ property to false.

C# Compiler Error – CS8418 ‘{0}’: type used in a using statement mu

In this blog post, you’ll learn more about the C# Compiler Error – CS8418 and the related message description C# Compiler Error Code CS8418 C# Compiler Description for the Code :CS8418 ‘{0}’: type used in a using statement must be implicitly convertible to ‘System.IDisposable’. Did you mean ‘await using’ rather than ‘using’?