>Cheers Viv, didn't know you could switch on enum types, discovering a really practical use for
>
>Func<>
>
> has opened my eyes big time - Lambda here I come ;-) BTW I tried sending with angle brackets and it wouldn't let me.
>
>Edit
>
>Oh it did let me :-), on the subject of switch et al , an ex colleague of mine was looking over my shoulder once reading my code and on seeing the word "break" he hollered implicit GOTO and I've never used it since,
You can't use switch in C# without break (but you can use adjacent case statements).....
> he also said try writing assembler without GOTO.
IIRC it was impossible - there was no other way of implementing loops :-}
And there are cases in C# where a 'goto' in a switch statement makes sense.
How did your colleague feel about 'continue' (or multiple returns) ?