Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lambda declaration
Message
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01611296
Message ID:
01611314
Vues:
35
>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) ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform