Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lambda declaration
Message
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01611296
Message ID:
01611314
Views:
36
>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) ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform