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 aa7a66f commit 5f6cdd6Copy full SHA for 5f6cdd6
1_CS/CoreCSharp/NullableReferenceTypes/Program.cs
@@ -20,6 +20,9 @@
20
string title = b2.Title;
21
string? publisher = b2.Publisher;
22
23
+Console.WriteLine(title);
24
+Console.WriteLine(publisher);
25
+Console.WriteLine(b1);
26
27
class Book
28
{
1_CS/CoreCSharp/VariableScopeSample2/Program.cs
@@ -1,6 +1,6 @@
1
int j = 20;
2
for (int i = 0; i < 10; i++)
3
4
- int j = 30; // Can't do this — j is still in scope
+ // int j = 30; // Can't do this — j is still in scope - uncomment to get the compilation error
5
Console.WriteLine(j + i);
6
}
0 commit comments