Skip to content

Commit 8b5d773

Browse files
Nigel-Ecmajskeet
andcommitted
Update standard/expressions.md
Co-authored-by: Jon Skeet <[email protected]>
1 parent 27f8b6a commit 8b5d773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@ A *null_conditional_element_access* expression `E` is of the form `P?[A]B`; wher
21302130
- If `T` is a non-nullable value type, then the type of `E` is `T?`, and the meaning of `E` is the same as the meaning of:
21312131

21322132
```csharp
2133-
((object)P == null) ? (T?)null : P.GetValueOrDefault()[A]B
2133+
((object)P == null) ? (T?)null : P.Value[A]B
21342134
```
21352135

21362136
Except that `P` is evaluated only once.

0 commit comments

Comments
 (0)