CS1997
Property | Value |
---|---|
Title | Since '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>>'? |
Severity | Error |
Code Fixes
- Change member type according to return expression
- Remove 'return' keyword
- Remove return expression