Skip to content

Commit e12163b

Browse files
bkoelmandennisdoomen
authored andcommitted
Updated title to match (#189)
1 parent 1c840ab commit e12163b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_pages/1100_MemberDesignGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You generally don't want callers to be able to change an internal collection, so
4444

4545
**Exception:** Immutable collections such as `ImmutableArray<T>`, `ImmutableList<T>` and `ImmutableDictionary<TKey, TValue>` prevent modifications from the outside and are thus allowed.
4646

47-
### <a name="av1135"></a> Properties, arguments and return values representing strings or collections should never be `null` (AV1135) ![](/assets/images/1.png)
47+
### <a name="av1135"></a> Properties, arguments and return values representing strings, collections or tasks should never be `null` (AV1135) ![](/assets/images/1.png)
4848

4949
Returning `null` can be unexpected by the caller. Always return an empty collection or an empty string instead of a `null` reference. When your member returns `Task` or `Task<T>`, return `Task.CompletedTask` or `Task.FromResult()`. This also prevents cluttering your code base with additional checks for `null`, or even worse, `string.IsNullOrEmpty()`.
5050

_pages/Cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ NOTE: Requires Markdown Extra. See http://michelf.ca/projects/php-markdown/extra
4747
* A property, method or local function should do only one thing (AV1115)
4848
* Don't expose stateful objects through static members (AV1125)
4949
* Return an `IEnumerable<T>` or `ICollection<T>` instead of a concrete collection class (AV1130)
50-
* Properties, arguments and return values representing strings or collections should never be `null` (AV1135)
50+
* Properties, arguments and return values representing strings, collections or tasks should never be `null` (AV1135)
5151
* Define parameters as specific as possible (AV1137)
5252
</td>
5353
<td class="column">

0 commit comments

Comments
 (0)