Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming classes
Message
De
31/07/2013 17:01:35
 
 
À
31/07/2013 16:57:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01579528
Message ID:
01579611
Vues:
57
This message has been marked as a message which has helped to the initial question of the thread.
Returning true or false is generally frowned on in a .Net application. In the case we're talking about in this thread, Naomi is dealing with an external C++ application. Unless she can change that program, she has to return a string.

>I know this is not related to the prime topic of this thread, and we might discuss it in a new thread, but "our returned string" grabbed my attention. I understand this is an old concept which came from VFP with the "by reference" approach. But, I try to stay away from that and have each method to simply return True or False for the success of its operation and store the related values in the class property. That can then be easily evolved furthermore without having to change the structure of the class/method.
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