K
Kevin Spencer
In addition, although this is not something that should be done very often,
it allows one to put multiple statements on the same line, and thus compact
your code a bit. There are a few situations where this comes in handy, such
as in switch statements.
switch (foo)
{
case (1): someFunction(); break;
case (2): SomeOtherFunction(); break;
//...
}
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
it allows one to put multiple statements on the same line, and thus compact
your code a bit. There are a few situations where this comes in handy, such
as in switch statements.
switch (foo)
{
case (1): someFunction(); break;
case (2): SomeOtherFunction(); break;
//...
}
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.