Questions tagged [statement]
The statement tag has no usage guidance.
2
questions
10
votes
2
answers
525
views
Why do the "using" directive and "using" statement use the same keyword in C#?
The using directive gives us access to types without using their fully-qualified names:
using MyNamespace.Foo.Bar;
The using statement acts as syntactic sugar for try/finally blocks which ensure ...
0
votes
5
answers
98
views
Is there a word that includes both statements and definitions/declarations
Wikipedia gives a few examples of statements that we all know:
Return statement: return value;
Assignment statement: var value = expression;
Call statement: expression;, e.g. action();
If statement ...