Skip to content

Commit 00b6451

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

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
@@ -2137,7 +2137,7 @@ A *null_conditional_element_access* expression `E` is of the form `P?[A]B`; wher
21372137
- Otherwise the type of `E` is `T`, and the meaning of `E` is the same as the meaning of:
21382138

21392139
```csharp
2140-
((object)P == null) ? null : P.GetValueOrDefault()[A]B
2140+
((object)P == null) ? null : P.Value[A]B
21412141
```
21422142

21432143
Except that `P` is evaluated only once.

0 commit comments

Comments
 (0)