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 37fd367 commit 593f88eCopy full SHA for 593f88e
samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideStatements/CS/Statements.cs
@@ -535,8 +535,9 @@ void TestMethod(string s)
535
// Expression statement (assignment).
536
area = 3.14 * (radius * radius);
537
538
- // Error. Not statement because no assignment:
539
- //circ * 2;
+ // Expression statement (result discarded).
+ int x = 0;
540
+ x++;
541
542
// Expression statement (method invocation).
543
System.Console.WriteLine();
0 commit comments