We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d2164 commit 5b6f702Copy full SHA for 5b6f702
docs/csharp/language-reference/operators/codesnippet/CSharp/null-conditional-operator_1.cs
@@ -15,7 +15,7 @@ static void Main()
15
int? x = null;
16
17
// Set y to the value of x if x is NOT null; otherwise,
18
- // if x = null, set y to -1.
+ // if x == null, set y to -1.
19
int y = x ?? -1;
20
21
// Assign i to return value of the method if the method's result
@@ -28,4 +28,4 @@ static void Main()
28
// display the string "Unspecified".
29
Console.WriteLine(s ?? "Unspecified");
30
}
31
- }
+ }
0 commit comments