Skip to main content

CS1997

PropertyValue
TitleSince 'RemoveReturnKeywordOrReturnExpression.FooAsync()' is an async method that returns 'Task', a return keyword must not be followed by an object expression. Did you intend to return 'Task<T>>'?
SeverityError

Code Fixes

  • Change member type according to return expression
  • Remove 'return' keyword
  • Remove return expression