C# Compiler Errors

Showing 341 - 360 of 682 results
C# Error CS0646 – Cannot specify the DefaultMember attribute on a type containing an indexer Reason for the Error &...
C# Compiler Error CS0185 – ‘type’ is not a reference type as required by the lock statement Reason for the...
C# Error CS8803 – Top-level statements must precede namespace and type declarations. Reason for the Error & Solution Top-level statements...
C# Compiler Error CS0264 – Partial declarations of ‘type’ must have the same type parameter names in the same order...
C# Compiler Error CS0531 – ‘member’ : interface members cannot have a definition Reason for the Error You’ll get this...
C# Error CS0854 – An expression tree may not contain a call or invocation that uses optional arguments Reason for...
C# Error CS0819 – Implicitly-typed variables cannot have multiple declarators Reason for the Error & Solution Implicitly-typed variables cannot have...
C# Error CS1503 – Argument {0}: cannot convert from ‘{1}’ to ‘{2}’ Reason for the Error & Solution Argument ‘number’...
C# Error CS0846 – A nested array initializer is expected Reason for the Error & Solution A nested array initializer...
C# Error CS1640 – foreach statement cannot operate on variables of type ‘{0}’ because it implements multiple instantiations of ‘{1}’;...
C# Error CS0841 – Cannot use local variable ‘{0}’ before it is declared Reason for the Error & Solution Cannot...
C# Error CS0591 – Invalid value for argument to ‘{0}’ attribute Reason for the Error & Solution Invalid value for...
C# Error CS0844 – Cannot use local variable ‘{0}’ before it is declared. The declaration of the local variable hides...
C# Error CS8333 – Cannot return {0} ‘{1}’ by writable reference because it is a readonly variable Reason for the...
Compiler Error CS0138 – A using namespace directive can only be applied to namespaces; ‘type’ is a type not a...
C# Error CS1576 – The line number specified for #line directive is missing or invalid Reason for the Error &...
C# Error CS4008 – Cannot await ‘void’ Reason for the Error & Solution Cannot await ‘void’ Example The following sample...
C# Compiler Error CS0159 – No such label ‘label’ within the scope of the goto statement Reason for the Error...
C# Error CS1996 – Cannot await in the body of a lock statement Reason for the Error & Solution Cannot...
C# Error CS8176 – Iterators cannot have by-reference locals Reason for the Error & Solution Iterators cannot have by-reference locals...