Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AV1135 and tasks #174

Closed
bkoelman opened this issue May 28, 2018 · 0 comments
Closed

AV1135 and tasks #174

bkoelman opened this issue May 28, 2018 · 0 comments

Comments

@bkoelman
Copy link
Contributor

Properties, arguments and return values representing strings or collections should never be null (AV1135)

Should Task be included here? Task.CompletedTask or Task.FromResult(false) can be returned when no work is scheduled.

Could be awkward to get a null task when using await.

mapfel pushed a commit to stepahead/CSharpGuidelines that referenced this issue Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant