We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [statement]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
2answers
471 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
5answers
96 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 ...