Skip to content

Commit 23abdd6

Browse files
authored
AV1553: Updated text to match with AV1135 (#255)
1 parent f720261 commit 23abdd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_rules/1553.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The only valid reason for using C# 4.0's optional parameters is to replace the e
1212
return someText.IndexOf(phrase, startIndex, length);
1313
}
1414

15-
Since strings, lists and collections should never be `null` according to rule [{{ site.default_rule_prefix }}1135](/member-design-guidelines#{{ site.default_rule_prefix }}1135), if you have an optional parameter of these types with default value `null` then you must use overloaded methods instead.
15+
Since strings, collections and tasks should never be `null` according to rule [{{ site.default_rule_prefix }}1135](/member-design-guidelines#{{ site.default_rule_prefix }}1135), if you have an optional parameter of these types with default value `null` then you must use overloaded methods instead.
1616

1717
Strings, unlike other reference types, can have non-null default values. So an optional string parameter may be used to replace overloads with the condition of having a non-null default value.
1818

0 commit comments

Comments
 (0)