Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters and arrays
Message
De
05/08/2010 22:59:44
 
 
À
05/08/2010 21:58:27
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01475479
Message ID:
01475486
Vues:
33
What do you mean by the method being a success? How do you handle errors. What you are doing is not how things should work in .NET. Spend some time looking at the design guidelines. http://msdn.microsoft.com/en-us/library/ms229042.aspx

>As for the first line, yes, this is exactly what I meant. As for the second part, I always rely on As Boolean for the method definition to return its success. Even if it can always be a success, assuming only one very little line, I always use that technique as I can make the method evolve and later on, maybe there could a situation that a false would be needed.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform