Property | Value |
---|---|
Id | CS0201 |
Title | Only assignment, call, increment, decrement, and new object expressions can be used as a statement. |
Severity | Error |
Official Documentation | link |
- Add argument list
- Change member type according to return expression
- Introduce field
- Introduce local variable
- Remove parentheses
- Replace comparison with assignment
- Replace conditional expression with if-else
(Generated with DotMarkdown)