Skip to content

Commit 27f8b6a

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

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
@@ -1774,7 +1774,7 @@ A *null_conditional_member_access* expression `E` is of the form `P?.A`. The me
17741774
- Otherwise the type of `E` is `T`, and the meaning of `E` is the same as the meaning of:
17751775

17761776
```csharp
1777-
((object)P == null) ? (T)null : P.GetValueOrDefault().A
1777+
((object)P == null) ? (T)null : P.Value.A
17781778
```
17791779

17801780
Except that `P` is evaluated only once.

0 commit comments

Comments
 (0)