Skip to main content

CS0201

PropertyValue
TitleOnly assignment, call, increment, decrement, and new object expressions can be used as a statement.
SeverityError

Code Fixes

  • 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

See Also