We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ef63c1 commit 2c91972Copy full SHA for 2c91972
1_CS/Delegates/GetAStringDemo/Program.cs
@@ -1,5 +1,5 @@
1
int x = 40;
2
-GetAString firstStringMethod = new GetAString(x.ToString);
+GetAString firstStringMethod = new(x.ToString);
3
Console.WriteLine($"String is {firstStringMethod()}");
4
// With firstStringMethod initialized to x.ToString(),
5
// the above statement is equivalent to saying
0 commit comments