You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/attributes.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -885,7 +885,7 @@ For an invocation that occurs within a local function or an anonymous function,
885
885
886
886
The attribute `System.Runtime.CompilerServices.CallerArgumentExpression` is applied to a *target parameter*, and can result in the capture of the source-code text of a sibling parameter’s argument as a string, referred to here as the *captured string*.
887
887
888
-
The target parameter shall have a *default_argument*.
888
+
Except when it is the first parameter in an extension method, the target parameter shall have a *default_argument*.
889
889
890
890
Consider the following method declaration:
891
891
@@ -918,7 +918,8 @@ The type of the target parameter shall have a standard conversion from `string`.
0 commit comments