Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Your Opinion On This Syntax
Message
De
07/10/2009 07:49:18
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01427920
Message ID:
01428012
Vues:
60
>>I would make GetShopOrderDetails static and call it with:
>>
>>dtShopOrder = ERP.GetShopOrderDetails(txtSerialNum.Text);
>>
>
>Why static? Isn't an instance the desired return value?

Because you wouldn't need to instantiate ERP in order to call GetShopOrderDetails()

This is one object less to create and one object less to garbage collect
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform