In this post, you’ll learn all the C# compiler error and warnings from the code CS8001 to CS8500.
C# Compiler Error Codes CS8001 to CS8500
Error Code | Type | Error/Warning Description |
---|---|---|
CS8001 | Warning | The command line switch ‘{0}’ is not yet implemented and was ignored. |
CS8002 | Warning | Referenced assembly ‘{0}’ does not have a strong name. |
CS8003 | Error | Invalid signature public key specified in AssemblySignatureKeyAttribute. |
CS8004 | Error | Type ‘{0}’ exported from module ‘{1}’ conflicts with type declared in primary module of this assembly. |
CS8005 | Error | Type ‘{0}’ exported from module ‘{1}’ conflicts with type ‘{2}’ exported from module ‘{3}’. |
CS8006 | Error | Forwarded type ‘{0}’ conflicts with type declared in primary module of this assembly. |
CS8007 | Error | Type ‘{0}’ forwarded to assembly ‘{1}’ conflicts with type ‘{2}’ forwarded to assembly ‘{3}’. |
CS8008 | Error | Type ‘{0}’ forwarded to assembly ‘{1}’ conflicts with type ‘{2}’ exported from module ‘{3}’. |
CS8009 | Warning | Referenced assembly ‘{0}’ has different culture setting of ‘{1}’. |
CS8010 | Error | Agnostic assembly cannot have a processor specific module ‘{0}’. |
CS8011 | Error | Assembly and module ‘{0}’ cannot target different processors. |
CS8012 | Warning | Referenced assembly ‘{0}’ targets a different processor. |
CS8013 | Error | Cryptographic failure while creating hashes. |
CS8014 | Error | Reference to ‘{0}’ netmodule missing. |
CS8015 | Error | Module ‘{0}’ is already defined in this assembly. Each module must have a unique filename. |
CS8016 | Error | Transparent identifier member access failed for field ‘{0}’ of ‘{1}’. Does the data being queried implement the query pattern? |
CS8017 | Error | The parameter has multiple distinct default values. |
CS8018 | Warning | Within cref attributes, nested types of generic types should be qualified. |
CS8019 | Hidden | Unnecessary using directive. |
CS8020 | Hidden | Unused extern alias. |
CS8021 | Warning | No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options. |
CS8022 | Error | Feature ‘{0}’ is not available in C# 1. Please use language version {1} or greater. |
CS8023 | Error | Feature ‘{0}’ is not available in C# 2. Please use language version {1} or greater. |
CS8024 | Error | Feature ‘{0}’ is not available in C# 3. Please use language version {1} or greater. |
CS8025 | Error | Feature ‘{0}’ is not available in C# 4. Please use language version {1} or greater. |
CS8026 | Error | Feature ‘{0}’ is not available in C# 5. Please use language version {1} or greater. |
CS8027 | Error | The field has multiple distinct constant values. |
CS8028 | Error | ‘{0}’: a class with the ComImport attribute cannot specify field initializers. |
CS8029 | Warning | Local name ‘{0}’ is too long for PDB. Consider shortening or compiling without /debug. |
CS8030 | Error | Anonymous function converted to a void returning delegate cannot return a value |
CS8031 | Error | Async lambda expression converted to a ‘Task’ returning delegate cannot return a value. Did you intend to return ‘Task\<T\>‘? |
CS8032 | Warning | An instance of analyzer {0} cannot be created from {1} : {2}. |
CS8033 | Warning | The assembly {0} does not contain any analyzers. |
CS8034 | Warning | Unable to load Analyzer assembly {0} : {1} |
CS8035 | Error | Error reading ruleset file {0} – {1} |
CS8036 | Error | Error reading debug information for ‘{0}’ |
CS8040 | Info | Skipping some types in analyzer assembly {0} due to a ReflectionTypeLoadException : {1}. |
CS8050 | Error | Only auto-implemented properties can have initializers. |
CS8051 | Error | Auto-implemented properties must have get accessors. |
CS8053 | Error | Instance properties in interfaces cannot have initializers. |
CS8054 | Error | Enums cannot contain explicit parameterless constructors |
CS8055 | Error | Cannot emit debug information for a source text without encoding. |
CS8057 | Error | Block bodies and expression bodies cannot both be provided. |
CS8058 | Error | Feature ‘{0}’ is experimental and unsupported; use ‘/features:{1}’ to enable. |
CS8059 | Error | Feature ‘{0}’ is not available in C# 6. Please use language version {1} or greater. |
CS8070 | Error | Control cannot fall out of switch from final case label (‘{0}’) |
CS8072 | Error | An expression tree lambda may not contain a null propagating operator. |
CS8073 | Warning | The result of the expression is always ‘{0}’ since a value of type ‘{1}’ is never equal to ‘null’ of type ‘{2}’ |
CS8074 | Error | An expression tree lambda may not contain a dictionary initializer. |
CS8075 | Error | An extension Add method is not supported for a collection initializer in an expression lambda. |
CS8076 | Error | Missing close delimiter ‘}’ for interpolated expression started with ‘{‘. |
CS8078 | Error | An expression is too long or complex to compile |
CS8079 | Error | Use of possibly unassigned auto-implemented property ‘{0}’ |
CS8080 | Error | Auto-implemented properties must override all accessors of the overridden property. |
CS8081 | Error | Expression does not have a name. |
CS8082 | Error | Sub-expression cannot be used in an argument to nameof. |
CS8083 | Error | An alias-qualified name is not an expression. |
CS8084 | Error | Type parameters are not allowed on a method group as an argument to ‘nameof’. |
CS8085 | Error | A ‘using static’ directive cannot be used to declare an alias |
CS8086 | Error | A ‘{0}’ character must be escaped (by doubling) in an interpolated string. |
CS8087 | Error | A ‘{0}’ character may only be escaped by doubling ‘{0}{0}’ in an interpolated string. |
CS8088 | Error | A format specifier may not contain trailing whitespace. |
CS8089 | Error | Empty format specifier. |
CS8090 | Error | There is an error in a referenced assembly ‘{0}’. |
CS8091 | Error | ‘{0}’ cannot be extern and have a constructor initializer |
CS8092 | Error | Expression or declaration statement expected. |
CS8093 | Error | Extension method groups are not allowed as an argument to ‘nameof’. |
CS8094 | Warning | Alignment value {0} has a magnitude greater than {1} and may result in a large formatted string. |
CS8095 | Error | Length of String constant resulting from concatenation exceeds System.Int32.MaxValue. Try splitting the string into multiple constants. |
CS8096 | Error | Debug entry point must be a definition of a method declared in the current compilation. |
CS8097 | Error | #load is only allowed in scripts |
CS8098 | Error | Cannot use #load after first token in file |
CS8099 | Error | Source file references are not supported. |
CS8100 | Error | The ‘await’ operator cannot be used in a static script variable initializer. |
CS8101 | Error | The pathmap option was incorrectly formatted. |
CS8102 | Error | Public signing was specified and requires a public key, but no public key was specified. |
CS8103 | Error | Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals. |
CS8104 | Error | An error occurred while writing the output file: {0}. |
CS8105 | Warning | Attribute ‘{0}’ is ignored when public signing is specified. |
CS8106 | Error | Option ‘{0}’ must be an absolute path. |
CS8107 | Error | Feature ‘{0}’ is not available in C# 7.0. Please use language version {1} or greater. |
CS8108 | Error | Cannot pass argument with dynamic type to params parameter ‘{0}’ of local function ‘{1}’. |
CS8110 | Error | An expression tree may not contain a reference to a local function |
CS8111 | Error | Invalid instrumentation kind: {0} |
CS8112 | Error | Local function ‘{0}’ must declare a body because it is not marked ‘static extern’. |
CS8113 | Error | Invalid hash algorithm name: ‘{0}’ |
CS8115 | Error | A throw expression is not allowed in this context. |
CS8116 | Error | It is not legal to use nullable type ‘{0}?’ in a pattern; use the underlying type ‘{0}’ instead. |
CS8117 | Error | Invalid operand for pattern match; value required, but found ‘{0}’. |
CS8119 | Error | The switch expression must be a value; found ‘{0}’. |
CS8120 | Error | The switch case is unreachable. It has already been handled by a previous case or it is impossible to match. |
CS8121 | Error | An expression of type ‘{0}’ cannot be handled by a pattern of type ‘{1}’. |
CS8122 | Error | An expression tree may not contain an ‘is’ pattern-matching operator. |
CS8123 | Warning | The tuple element name ‘{0}’ is ignored because a different name or no name is specified by the target type ‘{1}’. |
CS8124 | Error | Tuple must contain at least two elements. |
CS8125 | Error | Tuple element name ‘{0}’ is only allowed at position {1}. |
CS8126 | Error | Tuple element name ‘{0}’ is disallowed at any position. |
CS8127 | Error | Tuple element names must be unique. |
CS8128 | Error | Member ‘{0}’ was not found on type ‘{1}’ from assembly ‘{2}’. |
CS8129 | Error | No suitable ‘Deconstruct’ instance or extension method was found for type ‘{0}’, with {1} out parameters and a void return type. |
CS8130 | Error | Cannot infer the type of implicitly-typed deconstruction variable ‘{0}’. |
CS8131 | Error | Deconstruct assignment requires an expression with a type on the right-hand-side. |
CS8132 | Error | Cannot deconstruct a tuple of ‘{0}’ elements into ‘{1}’ variables. |
CS8133 | Error | Cannot deconstruct dynamic objects. |
CS8134 | Error | Deconstruction must contain at least two variables. |
CS8135 | Error | Tuple with {0} elements cannot be converted to type ‘{1}’. |
CS8136 | Error | Deconstruction ‘var (…)’ form disallows a specific type for ‘var’. |
CS8137 | Error | Cannot define a class or member that utilizes tuples because the compiler required type ‘{0}’ cannot be found. Are you missing a reference? |
CS8138 | Error | Cannot reference ‘System.Runtime.CompilerServices.TupleElementNamesAttribute’ explicitly. Use the tuple syntax to define tuple names. |
CS8139 | Error | ‘{0}’: cannot change tuple element names when overriding inherited member ‘{1}’ |
CS8140 | Error | ‘{0}’ is already listed in the interface list on type ‘{2}’ with different tuple element names, as ‘{1}’. |
CS8141 | Error | The tuple element names in the signature of method ‘{0}’ must match the tuple element names of interface method ‘{1}’ (including on the return type). |
CS8142 | Error | Both partial method declarations, ‘{0}’ and ‘{1}’, must use the same tuple element names. |
CS8143 | Error | An expression tree may not contain a tuple literal. |
CS8144 | Error | An expression tree may not contain a tuple conversion. |
CS8145 | Error | Auto-implemented properties cannot return by reference |
CS8146 | Error | Properties which return by reference must have a get accessor |
CS8147 | Error | Properties which return by reference cannot have set accessors |
CS8148 | Error | ‘{0}’ must match by reference return of overridden member ‘{1}’ |
CS8149 | Error | By-reference returns may only be used in methods that return by reference |
CS8150 | Error | By-value returns may only be used in methods that return by value |
CS8151 | Error | The return expression must be of type ‘{0}’ because this method returns by reference |
CS8152 | Error | ‘{0}’ does not implement interface member ‘{1}’. ‘{2}’ cannot implement ‘{1}’ because it does not have matching return by reference. |
CS8153 | Error | An expression tree lambda may not contain a call to a method, property, or indexer that returns by reference |
CS8154 | Error | The body of ‘{0}’ cannot be an iterator block because ‘{0}’ returns by reference |
CS8155 | Error | Lambda expressions that return by reference cannot be converted to expression trees |
CS8156 | Error | An expression cannot be used in this context because it may not be passed or returned by reference |
CS8157 | Error | Cannot return ‘{0}’ by reference because it was initialized to a value that cannot be returned by reference |
CS8158 | Error | Cannot return by reference a member of ‘{0}’ because it was initialized to a value that cannot be returned by reference |
CS8159 | Error | Cannot return the range variable ‘{0}’ by reference |
CS8160 | Error | A readonly field cannot be returned by writable reference |
CS8161 | Error | A static readonly field cannot be returned by writable reference |
CS8162 | Error | Members of readonly field ‘{0}’ cannot be returned by writable reference |
CS8163 | Error | Fields of static readonly field ‘{0}’ cannot be returned by writable reference |
CS8166 | Error | Cannot return a parameter by reference ‘{0}’ because it is not a ref parameter |
CS8167 | Error | Cannot return by reference a member of parameter ‘{0}’ because it is not a ref or out parameter |
CS8168 | Error | Cannot return local ‘{0}’ by reference because it is not a ref local |
CS8169 | Error | Cannot return a member of local ‘{0}’ by reference because it is not a ref local |
CS8170 | Error | Struct members cannot return ‘this’ or other instance members by reference |
CS8171 | Error | Cannot initialize a by-value variable with a reference |
CS8172 | Error | Cannot initialize a by-reference variable with a value |
CS8173 | Error | The expression must be of type ‘{0}’ because it is being assigned by reference |
CS8174 | Error | A declaration of a by-reference variable must have an initializer |
CS8175 | Error | Cannot use ref local ‘{0}’ inside an anonymous method, lambda expression, or query expression |
CS8176 | Error | Iterators cannot have by-reference locals |
CS8177 | Error | Async methods cannot have by-reference locals |
CS8178 | Error | ‘await’ cannot be used in an expression containing a call to ‘{0}’ because it returns by reference |
CS8179 | Error | Predefined type ‘{0}’ is not defined or imported |
CS8180 | Error | { or ; or => expected |
CS8181 | Error | ‘new’ cannot be used with tuple type. Use a tuple literal expression instead. |
CS8182 | Error | Predefined type ‘{0}’ must be a struct. |
CS8183 | Error | Cannot infer the type of implicitly-typed discard. |
CS8185 | Error | A declaration is not allowed in this context. |
CS8186 | Error | A foreach loop must declare its iteration variables. |
CS8187 | Error | Tuple element names are not permitted on the left of a deconstruction. |
CS8188 | Error | An expression tree may not contain a throw-expression. |
CS8189 | Error | Ref mismatch between ‘{0}’ and delegate ‘{1}’ |
CS8190 | Error | Provided source code kind is unsupported or invalid: ‘{0}’ |
CS8191 | Error | Provided documentation mode is unsupported or invalid: ‘{0}’. |
CS8192 | Error | Provided language version is unsupported or invalid: ‘{0}’. |
CS8196 | Error | Reference to an implicitly-typed out variable ‘{0}’ is not permitted in the same argument list. |
CS8197 | Error | Cannot infer the type of implicitly-typed out variable ‘{0}’. |
CS8198 | Error | An expression tree may not contain an out argument variable declaration. |
CS8199 | Error | The syntax ‘var (…)’ as an lvalue is reserved. |
CS8202 | Error | Public signing is not supported for netmodules. |
CS8203 | Error | Invalid assembly name: {0} |
CS8204 | Error | For type ‘{0}’ to be used as an AsyncMethodBuilder for type ‘{1}’, its Task property should return type ‘{1}’ instead of type ‘{2}’. |
CS8206 | Error | Module ‘{0}’ in assembly ‘{1}’ is forwarding the type ‘{2}’ to multiple assemblies: ‘{3}’ and ‘{4}’. |
CS8207 | Error | An expression tree may not contain a discard. |
CS8208 | Error | It is not legal to use the type ‘dynamic’ in a pattern. |
CS8209 | Error | A value of type ‘void’ may not be assigned. |
CS8210 | Error | A tuple may not contain a value of type ‘void’. |
CS8300 | Error | Merge conflict marker encountered |
CS8301 | Error | Invalid name for a preprocessing symbol; ‘{0}’ is not a valid identifier |
CS8302 | Error | Feature ‘{0}’ is not available in C# 7.1. Please use language version {1} or greater. |
CS8303 | Error | Specified language version ‘{0}’ cannot have leading zeroes |
CS8304 | Error | Compiler version: ‘{0}’. Language version: {1}. |
CS8305 | Warning | ‘{0}’ is for evaluation purposes only and is subject to change or removal in future updates. |
CS8306 | Error | Tuple element name ‘{0}’ is inferred. Please use language version {1} or greater to access an element by its inferred name. |
CS8307 | Error | The first operand of an ‘as’ operator may not be a tuple literal without a natural type. |
CS8308 | Error | Do not use refout when using refonly. |
CS8309 | Error | Cannot compile net modules when using /refout or /refonly. |
CS8310 | Error | Operator ‘{0}’ cannot be applied to operand ‘{1}’ |
CS8312 | Error | Use of default literal is not valid in this context |
CS8314 | Error | An expression of type ‘{0}’ cannot be handled by a pattern of type ‘{1}’ in C# {2}. Please use language version {3} or greater. |
CS8315 | Error | Operator ‘{0}’ is ambiguous on operands ‘{1}’ and ‘{2}’ |
CS8320 | Error | Feature ‘{0}’ is not available in C# 7.2. Please use language version {1} or greater. |
CS8321 | Warning | The local function ‘{0}’ is declared but never used |
CS8322 | Error | Cannot pass argument with dynamic type to generic local function ‘{0}’ with inferred type arguments. |
CS8323 | Error | Named argument ‘{0}’ is used out-of-position but is followed by an unnamed argument |
CS8324 | Error | Named argument specifications must appear after all fixed arguments have been specified in a dynamic invocation. |
CS8325 | Error | ‘await’ cannot be used in an expression containing a ref conditional operator |
CS8326 | Error | Both conditional operator values must be ref values or neither may be a ref value |
CS8327 | Error | The expression must be of type ‘{0}’ to match the alternative ref value |
CS8328 | Error | The parameter modifier ‘{0}’ cannot be used with ‘{1}’ |
CS8329 | Error | Cannot use {0} ‘{1}’ as a ref or out value because it is a readonly variable |
CS8330 | Error | Members of {0} ‘{1}’ cannot be used as a ref or out value because it is a readonly variable |
CS8331 | Error | Cannot assign to {0} ‘{1}’ because it is a readonly variable |
CS8332 | Error | Cannot assign to a member of {0} ‘{1}’ because it is a readonly variable |
CS8333 | Error | Cannot return {0} ‘{1}’ by writable reference because it is a readonly variable |
CS8334 | Error | Members of {0} ‘{1}’ cannot be returned by writable reference because it is a readonly variable |
CS8335 | Error | Do not use ‘{0}’. This is reserved for compiler usage. |
CS8336 | Error | The type name ‘{0}’ is reserved to be used by the compiler. |
CS8337 | Error | The first parameter of a ‘ref’ extension method ‘{0}’ must be a value type or a generic type constrained to struct. |
CS8338 | Error | The first parameter of the ‘in’ extension method ‘{0}’ must be a concrete (non-generic) value type. |
CS8340 | Error | Instance fields of readonly structs must be readonly. |
CS8341 | Error | Auto-implemented instance properties in readonly structs must be readonly. |
CS8342 | Error | Field-like events are not allowed in readonly structs. |
CS8343 | Error | ‘{0}’: ref structs cannot implement interfaces |
CS8344 | Error | foreach statement cannot operate on enumerators of type ‘{0}’ in async or iterator methods because ‘{0}’ is a ref struct. |
CS8345 | Error | Field or auto-implemented property cannot be of type ‘{0}’ unless it is an instance member of a ref struct. |
CS8346 | Error | Conversion of a stackalloc expression of type ‘{0}’ to type ‘{1}’ is not possible. |
CS8347 | Error | Cannot use a result of ‘{0}’ in this context because it may expose variables referenced by parameter ‘{1}’ outside of their declaration scope |
CS8348 | Error | Cannot use a member of result of ‘{0}’ in this context because it may expose variables referenced by parameter ‘{1}’ outside of their declaration scope |
CS8349 | Error | Expression cannot be used in this context because it may indirectly expose variables outside of their declaration scope |
CS8350 | Error | This combination of arguments to ‘{0}’ is disallowed because it may expose variables referenced by parameter ‘{1}’ outside of their declaration scope |
CS8351 | Error | Branches of a ref conditional operator cannot refer to variables with incompatible declaration scopes |
CS8352 | Error | Cannot use variable ‘{0}’ in this context because it may expose referenced variables outside of their declaration scope |
CS8353 | Error | A result of a stackalloc expression of type ‘{0}’ cannot be used in this context because it may be exposed outside of the containing method |
CS8354 | Error | Cannot return ‘this’ by reference. |
CS8355 | Error | An in parameter cannot have the Out attribute. |
CS8356 | Error | Predefined type ‘{0}’ is declared in multiple referenced assemblies: ‘{1}’ and ‘{2}’ |
CS8357 | Error | The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation |
CS8358 | Error | Cannot use attribute constructor ‘{0}’ because it has ‘in’ parameters. |
CS8359 | Warning | Filter expression is a constant ‘false’, consider removing the catch clause |
CS8360 | Warning | Filter expression is a constant ‘false’, consider removing the try-catch block |
CS8361 | Error | A conditional expression cannot be used directly in a string interpolation because the ‘:’ ends the interpolation. Parenthesize the conditional expression. |
CS8362 | Error | __arglist cannot have an argument of void type |
CS8364 | Error | Arguments with ‘in’ modifier cannot be used in dynamically dispatched expressions. |
CS8370 | Error | Feature ‘{0}’ is not available in C# 7.3. Please use language version {1} or greater. |
CS8371 | Warning | Field-targeted attributes on auto-properties are not supported in language version {0}. Please use language version {1} or greater. |
CS8372 | Error | Do not use ‘System.Runtime.CompilerServices.FixedBuffer’ attribute on a property |
CS8373 | Error | The left-hand side of a ref assignment must be a ref variable. |
CS8374 | Error | Cannot ref-assign ‘{1}’ to ‘{0}’ because ‘{1}’ has a narrower escape scope than ‘{0}’. |
CS8375 | Error | The ‘new()’ constraint cannot be used with the ‘unmanaged’ constraint |
CS8377 | Error | The type ‘{2}’ must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter ‘{1}’ in the generic type or method ‘{0}’ |
CS8378 | Error | __arglist cannot have an argument passed by ‘in’ or ‘out’ |
CS8379 | Error | Type parameter ‘{1}’ has the ‘unmanaged’ constraint so ‘{1}’ cannot be used as a constraint for ‘{0}’ |
CS8380 | Error | ‘{0}’: cannot specify both a constraint class and the ‘unmanaged’ constraint |
CS8381 | Error | “Invalid rank specifier: expected ‘]’ |
CS8382 | Error | An expression tree may not contain a tuple == or != operator |
CS8383 | Warning | The tuple element name ‘{0}’ is ignored because a different name or no name is specified on the other side of the tuple == or != operator. |
CS8384 | Error | Tuple types used as operands of an == or != operator must have matching cardinalities. But this operator has tuple types of cardinality {0} on the left and {1} on the right. |
CS8385 | Error | The given expression cannot be used in a fixed statement |
CS8386 | Error | Invalid object creation |
CS8387 | Warning | Type parameter ‘{0}’ has the same name as the type parameter from outer method ‘{1}’ |
CS8388 | Error | An out variable cannot be declared as a ref local |
CS8389 | Error | Omitting the type argument is not allowed in the current context |
CS8400 | Error | Feature ‘{0}’ is not available in C# 8.0. Please use language version {1} or greater. |
CS8401 | Error | To use ‘@$’ instead of ‘$@’ for an interpolated verbatim string, please use language version ‘{0}’ or greater. |
CS8403 | Error | Method ‘{0}’ with an iterator block must be ‘async’ to return ‘{1}’ |
CS8410 | Error | ‘{0}’: type used in an asynchronous using statement must be implicitly convertible to ‘System.IAsyncDisposable’ or implement a suitable ‘DisposeAsync’ method. |
CS8411 | Error | Asynchronous foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a suitable public instance or extension definition for ‘{1}’ |
CS8412 | Error | Asynchronous foreach requires that the return type ‘{0}’ of ‘{1}’ must have a suitable public ‘MoveNextAsync’ method and public ‘Current’ property |
CS8413 | Error | Asynchronous foreach statement cannot operate on variables of type ‘{0}’ because it implements multiple instantiations of ‘{1}’; try casting to a specific interface instantiation |
CS8414 | Error | foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a public instance or extension definition for ‘{1}’. Did you mean ‘await foreach’ rather than ‘foreach’? |
CS8415 | Error | Asynchronous foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a public instance or extension definition for ‘{1}’. Did you mean ‘foreach’ rather than ‘await foreach’? |
CS8416 | Error | Cannot use a collection of dynamic type in an asynchronous foreach |
CS8417 | Error | ‘{0}’: type used in an asynchronous using statement must be implicitly convertible to ‘System.IAsyncDisposable’ or implement a suitable ‘DisposeAsync’ method. Did you mean ‘using’ rather than ‘await using’? |
CS8418 | Error | ‘{0}’: type used in a using statement must be implicitly convertible to ‘System.IDisposable’. Did you mean ‘await using’ rather than ‘using’? |
CS8419 | Error | The body of an async-iterator method must contain a ‘yield’ statement. |
CS8420 | Error | The body of an async-iterator method must contain a ‘yield’ statement. Consider removing ‘async’ from the method declaration or adding a ‘yield’ statement. |
CS8421 | Error | A static local function cannot contain a reference to ‘{0}’. |
CS8422 | Error | A static local function cannot contain a reference to ‘this’ or ‘base’. |
CS8423 | Error | Attribute ‘{0}’ is not valid on event accessors. It is only valid on ‘{1}’ declarations. |
CS8424 | Warning | The EnumeratorCancellationAttribute applied to parameter ‘{0}’ will have no effect. The attribute is only effective on a parameter of type CancellationToken in an async-iterator method returning IAsyncEnumerable |
CS8425 | Warning | 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 |
CS8426 | Error | The attribute [EnumeratorCancellation] cannot be used on multiple parameters |
CS8427 | Error | Enums, classes, and structures cannot be declared in an interface that has an ‘in’ or ‘out’ type parameter. |
CS8428 | Error | Invocation of implicit Index Indexer cannot name the argument. |
CS8429 | Error | Invocation of implicit Range Indexer cannot name the argument. |
CS8500 | Warning | This takes the address of, gets the size of, or declares a pointer to a managed type (‘{0}’) |