Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an object back?
Message
De
21/02/2013 02:46:13
 
 
À
20/02/2013 16:11:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566475
Message ID:
01566640
Vues:
62
>Again, the code has stuff that smell bad.
>
>don't return a message if there is an error. Throw a new exception and handle it.
>don't return bool. Return a enum or better, return the thing that you're interested in (the actual datarow or datatable)
>don't pass by ref. It adds lots of overhead and slows down your app
>don't use names like databaseParam. use database
>

I don't recall asking for a sermon ;-)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform