dennisdoomen / CSharpGuidelines

A set of coding guidelines for C# 9.0, design principles and layout rules for improving the overall quality of your code development.
https://www.csharpcodingguidelines.com
Other
746 stars 271 forks source link

AV1135 and tasks #174

Closed bkoelman closed 5 years ago

bkoelman commented 6 years ago

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.